Package org.apache.xalan.serialize
Interface Serializer
-
public interface SerializerDeprecated.Use org.apache.xml.serializer.SerializerThe 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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description org.xml.sax.ContentHandlerasContentHandler()Deprecated.Use org.apache.xml.serializer.SerializerDOMSerializerasDOMSerializer()Deprecated.Use org.apache.xml.serializer.Serializerjava.util.PropertiesgetOutputFormat()Deprecated.Use org.apache.xml.serializer.Serializerjava.io.OutputStreamgetOutputStream()Deprecated.Use org.apache.xml.serializer.Serializerjava.io.WritergetWriter()Deprecated.Use org.apache.xml.serializer.Serializerbooleanreset()Deprecated.Use org.apache.xml.serializer.SerializervoidsetOutputFormat(java.util.Properties format)Deprecated.Use org.apache.xml.serializer.SerializervoidsetOutputStream(java.io.OutputStream output)Deprecated.Use org.apache.xml.serializer.SerializervoidsetWriter(java.io.Writer writer)Deprecated.Use org.apache.xml.serializer.Serializer
-
-
-
Method Detail
-
setOutputStream
void setOutputStream(java.io.OutputStream output)
Deprecated.Use org.apache.xml.serializer.SerializerSpecifies 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
Propertiesis used, or if no encoding was specified, the default for the selected output method.- Parameters:
output- The output stream
-
getOutputStream
java.io.OutputStream getOutputStream()
Deprecated.Use org.apache.xml.serializer.SerializerGet the output stream where the events will be serialized to.- Returns:
- reference to the result stream, or null of only a writer was set.
-
setWriter
void setWriter(java.io.Writer writer)
Deprecated.Use org.apache.xml.serializer.SerializerSpecifies 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
Propertiesmust be identical to the output format used with the writer.- Parameters:
writer- The output writer stream
-
getWriter
java.io.Writer getWriter()
Deprecated.Use org.apache.xml.serializer.SerializerGet the character stream where the events will be serialized to.- Returns:
- Reference to the result Writer, or null.
-
setOutputFormat
void setOutputFormat(java.util.Properties format)
Deprecated.Use org.apache.xml.serializer.SerializerSpecifies 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
-
getOutputFormat
java.util.Properties getOutputFormat()
Deprecated.Use org.apache.xml.serializer.SerializerReturns the output format for this serializer.- Returns:
- The output format in use
-
asContentHandler
org.xml.sax.ContentHandler asContentHandler() throws java.io.IOExceptionDeprecated.Use org.apache.xml.serializer.SerializerReturn aContentHandlerinterface into this serializer. If the serializer does not support theContentHandlerinterface, it should return null.- Returns:
- A
ContentHandlerinterface into this serializer, or null if the serializer is not SAX 2 capable - Throws:
java.io.IOException- An I/O exception occured
-
asDOMSerializer
DOMSerializer asDOMSerializer() throws java.io.IOException
Deprecated.Use org.apache.xml.serializer.SerializerReturn aDOMSerializerinterface into this serializer. If the serializer does not support theDOMSerializerinterface, it should return null.- Returns:
- A
DOMSerializerinterface into this serializer, or null if the serializer is not DOM capable - Throws:
java.io.IOException- An I/O exception occured
-
reset
boolean reset()
Deprecated.Use org.apache.xml.serializer.SerializerResets 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
-
-