Methods Summary |
---|
public org.xml.sax.ContentHandler | asContentHandler()Return a {@link ContentHandler} interface into this serializer.
If the serializer does not support the {@link ContentHandler}
interface, it should return null.
|
public com.sun.org.apache.xml.internal.serializer.DOMSerializer | asDOMSerializer()Return a {@link DOMSerializer} interface into this serializer.
If the serializer does not support the {@link DOMSerializer}
interface, it should return null.
|
public java.util.Properties | getOutputFormat()Returns the output format properties for this serializer.
|
public java.io.OutputStream | getOutputStream()Get the output stream where the events will be serialized to.
|
public java.io.Writer | getWriter()Get the character stream where the events will be serialized to.
|
public boolean | reset()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.
|
public void | setOutputFormat(java.util.Properties format)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.
|
public void | setOutputStream(java.io.OutputStream output)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.
|
public void | setWriter(java.io.Writer writer)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.
|