Package org.exolab.castor.xml
Class XercesSerializer
- java.lang.Object
-
- org.exolab.castor.xml.XercesSerializer
-
- All Implemented Interfaces:
Serializer
public class XercesSerializer extends java.lang.Object implements Serializer
Xerces-specific implementation of the Serializer interface.- Version:
- $Revision: 7951 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
- Author:
- Werner Guttmann
-
-
Constructor Summary
Constructors Constructor Description XercesSerializer()
Creates an instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.DocumentHandler
asDocumentHandler()
Returns theDocumentHandler
to use for serialization.void
setOutputByteStream(java.io.OutputStream output)
Sets theOutputStream
to use.void
setOutputCharStream(java.io.Writer out)
Sets the OutputCharStream to use.void
setOutputFormat(OutputFormat format)
Sets theOutputFormat
to use during serialization.
-
-
-
Method Detail
-
setOutputCharStream
public void setOutputCharStream(java.io.Writer out)
Description copied from interface:Serializer
Sets the OutputCharStream to use.- Specified by:
setOutputCharStream
in interfaceSerializer
- Parameters:
out
- the OutputCharStream to use.- See Also:
Serializer.setOutputCharStream(java.io.Writer)
-
asDocumentHandler
public org.xml.sax.DocumentHandler asDocumentHandler() throws java.io.IOException
Description copied from interface:Serializer
Returns theDocumentHandler
to use for serialization.- Specified by:
asDocumentHandler
in interfaceSerializer
- Returns:
- the DocumentHandler to use for serialization.
- Throws:
java.io.IOException
- See Also:
Serializer.asDocumentHandler()
-
setOutputFormat
public void setOutputFormat(OutputFormat format)
Description copied from interface:Serializer
Sets theOutputFormat
to use during serialization.- Specified by:
setOutputFormat
in interfaceSerializer
- Parameters:
format
- The output format to use.- See Also:
#setOutputFormat(org.exolab.castor.xml.OutputFormat)
-
setOutputByteStream
public void setOutputByteStream(java.io.OutputStream output)
Description copied from interface:Serializer
Sets theOutputStream
to use.- Specified by:
setOutputByteStream
in interfaceSerializer
- Parameters:
output
- the OutputStream to use- See Also:
Serializer.setOutputByteStream(java.io.OutputStream)
-
-