Package org.exolab.castor.xml
Interface Serializer
-
- All Known Implementing Classes:
AIXXercesJDK5Serializer
,BaseXercesJDK5Serializer
,WeblogicXercesSerializer
,XercesJDK5Serializer
,XercesSerializer
public interface Serializer
Interface contract for XML serialization business.- Author:
- Werner Guttmann
-
-
Method Summary
All Methods Instance Methods Abstract 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
void setOutputCharStream(java.io.Writer out)
Sets the OutputCharStream to use.- Parameters:
out
- the OutputCharStream to use.
-
asDocumentHandler
org.xml.sax.DocumentHandler asDocumentHandler() throws java.io.IOException
Returns theDocumentHandler
to use for serialization.- Returns:
- the DocumentHandler to use for serialization.
- Throws:
java.io.IOException
-
setOutputFormat
void setOutputFormat(OutputFormat format)
Sets theOutputFormat
to use during serialization.- Parameters:
format
- The output format to use.
-
setOutputByteStream
void setOutputByteStream(java.io.OutputStream output)
Sets theOutputStream
to use.- Parameters:
output
- the OutputStream to use
-
-