Package it.ovunque.serializza.xstream
Class ScrittoreJs
java.lang.Object
it.ovunque.serializza.xstream.ScrittoreJs
- All Implemented Interfaces:
com.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter
,com.thoughtworks.xstream.io.HierarchicalStreamWriter
,JsStreamWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addAttribute
(String nome, String valore) void
close()
Close the writer, if necessary.static void
collezioniConQuadre
(boolean conQuadre) void
endNode()
void
flush()
Flush the writer, if necessary.void
Write the value (text content) of the current node.void
void
com.thoughtworks.xstream.io.HierarchicalStreamWriter
Return the underlying HierarchicalStreamWriter implementation.
-
Constructor Details
-
ScrittoreJs
- Parameters:
out
-
-
-
Method Details
-
collezioniConQuadre
public static void collezioniConQuadre(boolean conQuadre) -
addAttribute
- Specified by:
addAttribute
in interfacecom.thoughtworks.xstream.io.HierarchicalStreamWriter
- See Also:
-
HierarchicalStreamWriter.addAttribute(java.lang.String, java.lang.String)
-
close
public void close()Description copied from interface:com.thoughtworks.xstream.io.HierarchicalStreamWriter
Close the writer, if necessary.- Specified by:
close
in interfacecom.thoughtworks.xstream.io.HierarchicalStreamWriter
- See Also:
-
HierarchicalStreamWriter.close()
-
flush
public void flush()Description copied from interface:com.thoughtworks.xstream.io.HierarchicalStreamWriter
Flush the writer, if necessary.- Specified by:
flush
in interfacecom.thoughtworks.xstream.io.HierarchicalStreamWriter
- See Also:
-
HierarchicalStreamWriter.flush()
-
startNode
- Specified by:
startNode
in interfacecom.thoughtworks.xstream.io.ExtendedHierarchicalStreamWriter
-
startNode
- Specified by:
startNode
in interfacecom.thoughtworks.xstream.io.HierarchicalStreamWriter
- See Also:
-
HierarchicalStreamWriter.startNode(java.lang.String)
-
setValue
Description copied from interface:com.thoughtworks.xstream.io.HierarchicalStreamWriter
Write the value (text content) of the current node.- Specified by:
setValue
in interfacecom.thoughtworks.xstream.io.HierarchicalStreamWriter
- See Also:
-
HierarchicalStreamWriter.setValue(java.lang.String)
-
endNode
public void endNode()- Specified by:
endNode
in interfacecom.thoughtworks.xstream.io.HierarchicalStreamWriter
- See Also:
-
HierarchicalStreamWriter.endNode()
-
underlyingWriter
public com.thoughtworks.xstream.io.HierarchicalStreamWriter underlyingWriter()Description copied from interface:com.thoughtworks.xstream.io.HierarchicalStreamWriter
Return the underlying HierarchicalStreamWriter implementation.If a Converter needs to access methods of a specific HierarchicalStreamWriter implementation that are not defined in the HierarchicalStreamWriter interface, it should call this method before casting. This is because the writer passed to the Converter is often wrapped/decorated by another implementation to provide additional functionality (such as XPath tracking).
For example:
MySpecificWriter mySpecificWriter = (MySpecificWriter)writer; // INCORRECT! mySpecificWriter.doSomethingSpecific();
MySpecificWriter mySpecificWriter = (MySpecificWriter)writer.underlyingWriter(); // CORRECT! mySpecificWriter.doSomethingSpecific();
Implementations of HierarchicalStreamWriter should return 'this', unless they are a decorator, in which case they should delegate to whatever they are wrapping.
- Specified by:
underlyingWriter
in interfacecom.thoughtworks.xstream.io.HierarchicalStreamWriter
- See Also:
-
HierarchicalStreamWriter.underlyingWriter()
-
getResultAsMap
- Specified by:
getResultAsMap
in interfaceJsStreamWriter
-