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
Modifier and TypeMethodDescriptionReturns theDocumentHandler
to use for serialization.void
setOutputByteStream
(OutputStream output) Sets theOutputStream
to use.void
Sets the OutputCharStream to use.void
setOutputFormat
(OutputFormat format) Sets theOutputFormat
to use during serialization.
-
Method Details
-
setOutputCharStream
Sets the OutputCharStream to use.- Parameters:
out
- the OutputCharStream to use.
-
asDocumentHandler
Returns theDocumentHandler
to use for serialization.- Returns:
- the DocumentHandler to use for serialization.
- Throws:
IOException
-
setOutputFormat
Sets theOutputFormat
to use during serialization.- Parameters:
format
- The output format to use.
-
setOutputByteStream
Sets theOutputStream
to use.- Parameters:
output
- the OutputStream to use
-