Package org.exolab.castor.xml
Interface Serializer
-
- All Known Implementing Classes:
AIXXercesJDK5Serializer,BaseXercesJDK5Serializer,WeblogicXercesSerializer,XercesJDK5Serializer,XercesSerializer
public interface SerializerInterface contract for XML serialization business.- Author:
- Werner Guttmann
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.xml.sax.DocumentHandlerasDocumentHandler()Returns theDocumentHandlerto use for serialization.voidsetOutputByteStream(java.io.OutputStream output)Sets theOutputStreamto use.voidsetOutputCharStream(java.io.Writer out)Sets the OutputCharStream to use.voidsetOutputFormat(OutputFormat format)Sets theOutputFormatto 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.IOExceptionReturns theDocumentHandlerto use for serialization.- Returns:
- the DocumentHandler to use for serialization.
- Throws:
java.io.IOException
-
setOutputFormat
void setOutputFormat(OutputFormat format)
Sets theOutputFormatto use during serialization.- Parameters:
format- The output format to use.
-
setOutputByteStream
void setOutputByteStream(java.io.OutputStream output)
Sets theOutputStreamto use.- Parameters:
output- the OutputStream to use
-
-