public interface Serializer
Modifier and Type | Method and Description |
---|---|
ContentHandler |
asContentHandler()
Deprecated.
Use org.apache.xml.serializer.Serializer
|
DOMSerializer |
asDOMSerializer()
Deprecated.
Use org.apache.xml.serializer.Serializer
|
Properties |
getOutputFormat()
Deprecated.
Use org.apache.xml.serializer.Serializer
|
OutputStream |
getOutputStream()
Deprecated.
Use org.apache.xml.serializer.Serializer
|
Writer |
getWriter()
Deprecated.
Use org.apache.xml.serializer.Serializer
|
boolean |
reset()
Deprecated.
Use org.apache.xml.serializer.Serializer
|
void |
setOutputFormat(Properties format)
Deprecated.
Use org.apache.xml.serializer.Serializer
|
void |
setOutputStream(OutputStream output)
Deprecated.
Use org.apache.xml.serializer.Serializer
|
void |
setWriter(Writer writer)
Deprecated.
Use org.apache.xml.serializer.Serializer
|
void setOutputStream(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 streamOutputStream getOutputStream()
void setWriter(Writer writer)
The encoding specified for the output Properties
must be
identical to the output format used with the writer.
writer
- The output writer streamWriter getWriter()
void setOutputFormat(Properties format)
format
- The output format to useProperties getOutputFormat()
ContentHandler asContentHandler() throws 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 capableIOException
- An I/O exception occuredDOMSerializer asDOMSerializer() throws 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 capableIOException
- An I/O exception occuredboolean reset()
Copyright © 2016 JBoss by Red Hat. All rights reserved.