public class XercesSerializer extends Object implements Serializer
Constructor and Description |
---|
XercesSerializer()
Creates an instance of this class.
|
Modifier and Type | Method and Description |
---|---|
DocumentHandler |
asDocumentHandler()
Returns the
DocumentHandler to use for serialization. |
void |
setOutputByteStream(OutputStream output)
Sets the
OutputStream to use. |
void |
setOutputCharStream(Writer out)
Sets the OutputCharStream to use.
|
void |
setOutputFormat(OutputFormat format)
Sets the
OutputFormat to use during serialization. |
public void setOutputCharStream(Writer out)
Serializer
setOutputCharStream
in interface Serializer
out
- the OutputCharStream to use.{@inheritDoc}
public DocumentHandler asDocumentHandler() throws IOException
Serializer
DocumentHandler
to use for serialization.asDocumentHandler
in interface Serializer
IOException
{@inheritDoc}
public void setOutputFormat(OutputFormat format)
Serializer
OutputFormat
to use during serialization.setOutputFormat
in interface Serializer
format
- The output format to use.#setOutputFormat(org.exolab.castor.xml.OutputFormat)
{@inheritDoc}
public void setOutputByteStream(OutputStream output)
Serializer
OutputStream
to use.setOutputByteStream
in interface Serializer
output
- the OutputStream to use{@inheritDoc}
Copyright © 2014. All rights reserved.