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 theDocumentHandlerto use for serialization.voidsetOutputByteStream(OutputStream output) Sets theOutputStreamto use.voidSets the OutputCharStream to use.voidsetOutputFormat(OutputFormat format) Sets theOutputFormatto use during serialization.
-
Method Details
-
setOutputCharStream
Sets the OutputCharStream to use.- Parameters:
out- the OutputCharStream to use.
-
asDocumentHandler
Returns theDocumentHandlerto use for serialization.- Returns:
- the DocumentHandler to use for serialization.
- Throws:
IOException
-
setOutputFormat
Sets theOutputFormatto use during serialization.- Parameters:
format- The output format to use.
-
setOutputByteStream
Sets theOutputStreamto use.- Parameters:
output- the OutputStream to use
-