|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface 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 | |
|---|---|
org.xml.sax.ContentHandler |
asContentHandler()
Deprecated. Use org.apache.xml.serializer.Serializer |
DOMSerializer |
asDOMSerializer()
Deprecated. Use org.apache.xml.serializer.Serializer |
java.util.Properties |
getOutputFormat()
Deprecated. Use org.apache.xml.serializer.Serializer |
java.io.OutputStream |
getOutputStream()
Deprecated. Use org.apache.xml.serializer.Serializer |
java.io.Writer |
getWriter()
Deprecated. Use org.apache.xml.serializer.Serializer |
boolean |
reset()
Deprecated. Use org.apache.xml.serializer.Serializer |
void |
setOutputFormat(java.util.Properties format)
Deprecated. Use org.apache.xml.serializer.Serializer |
void |
setOutputStream(java.io.OutputStream output)
Deprecated. Use org.apache.xml.serializer.Serializer |
void |
setWriter(java.io.Writer writer)
Deprecated. Use org.apache.xml.serializer.Serializer |
| Method Detail |
|---|
void setOutputStream(java.io.OutputStream output)
The encoding specified in the output Properties is used, or
if no encoding was specified, the default for the selected
output method.
output - The output streamjava.io.OutputStream getOutputStream()
void setWriter(java.io.Writer writer)
The encoding specified for the output Properties must be
identical to the output format used with the writer.
writer - The output writer streamjava.io.Writer getWriter()
void setOutputFormat(java.util.Properties format)
format - The output format to usejava.util.Properties getOutputFormat()
org.xml.sax.ContentHandler asContentHandler()
throws java.io.IOException
ContentHandler interface into this serializer.
If the serializer does not support the ContentHandler
interface, it should return null.
ContentHandler interface into this serializer,
or null if the serializer is not SAX 2 capable
java.io.IOException - An I/O exception occured
DOMSerializer asDOMSerializer()
throws java.io.IOException
DOMSerializer interface into this serializer.
If the serializer does not support the DOMSerializer
interface, it should return null.
DOMSerializer interface into this serializer,
or null if the serializer is not DOM capable
java.io.IOException - An I/O exception occuredboolean reset()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||