org.apache.xalan.serialize
public interface Serializer
Deprecated: Use org.apache.xml.serializer.Serializer
The Serializer interface is implemented by Serializers to publish methods to get and set streams and writers, to set the output properties, and get the Serializer as a ContentHandler or DOMSerializer.Method Summary | |
---|---|
ContentHandler | asContentHandler()
Return a {@link ContentHandler} interface into this serializer.
|
DOMSerializer | asDOMSerializer()
Return a {@link DOMSerializer} interface into this serializer.
|
Properties | getOutputFormat()
Returns the output format for this serializer.
|
OutputStream | getOutputStream()
Get the output stream where the events will be serialized to.
|
Writer | getWriter()
Get the character stream where the events will be serialized to.
|
boolean | reset()
Resets the serializer. |
void | setOutputFormat(Properties format)
Specifies an output format for this serializer. |
void | setOutputStream(OutputStream output)
Specifies an output stream to which the document should be
serialized. |
void | setWriter(Writer writer)
Specifies a writer to which the document should be serialized.
|
Deprecated: Use org.apache.xml.serializer.Serializer
Return a {@link ContentHandler} interface into this serializer. If the serializer does not support the {@link ContentHandler} interface, it should return null.Returns: A {@link ContentHandler} interface into this serializer, or null if the serializer is not SAX 2 capable
Throws: IOException An I/O exception occured
Deprecated: Use org.apache.xml.serializer.Serializer
Return a {@link DOMSerializer} interface into this serializer. If the serializer does not support the {@link DOMSerializer} interface, it should return null.Returns: A {@link DOMSerializer} interface into this serializer, or null if the serializer is not DOM capable
Throws: IOException An I/O exception occured
Deprecated: Use org.apache.xml.serializer.Serializer
Returns the output format for this serializer.Returns: The output format in use
Deprecated: Use org.apache.xml.serializer.Serializer
Get the output stream where the events will be serialized to.Returns: reference to the result stream, or null of only a writer was set.
Deprecated: Use org.apache.xml.serializer.Serializer
Get the character stream where the events will be serialized to.Returns: Reference to the result Writer, or null.
Deprecated: Use org.apache.xml.serializer.Serializer
Resets the serializer. If this method returns true, the serializer may be used for subsequent serialization of new documents. It is possible to change the output format and output stream prior to serializing, or to use the existing output format and output stream.Returns: True if serializer has been reset and can be reused
Deprecated: Use org.apache.xml.serializer.Serializer
Specifies an output format for this serializer. It the serializer has already been associated with an output format, it will switch to the new format. This method should not be called while the serializer is in the process of serializing a document.Parameters: format The output format to use
Deprecated: Use org.apache.xml.serializer.Serializer
Specifies an output stream to which the document should be serialized. This method should not be called while the serializer is in the process of serializing a document.The encoding specified in the output {@link Properties} is used, or if no encoding was specified, the default for the selected output method.
Parameters: output The output stream
Deprecated: Use org.apache.xml.serializer.Serializer
Specifies a writer to which the document should be serialized. This method should not be called while the serializer is in the process of serializing a document.The encoding specified for the output {@link Properties} must be identical to the output format used with the writer.
Parameters: writer The output writer stream