org.exolab.castor.xml
Interface Serializer

All Known Implementing Classes:
WeblogicXercesSerializer, XercesJDK5Serializer, XercesSerializer

public interface Serializer

Interface contract for XML serialization business.

Author:
Werner Guttmann

Method Summary
 org.xml.sax.DocumentHandler asDocumentHandler()
          Returns the DocumentHandler to use for serialization.
 void setOutputByteStream(java.io.OutputStream output)
          Sets the OutputStream to use.
 void setOutputCharStream(java.io.Writer out)
          Sets the OutputCharStream to use.
 void setOutputFormat(OutputFormat format)
          Sets the OutputFormat 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 the DocumentHandler to use for serialization.

Returns:
the DocumentHandler to use for serialization.
Throws:
java.io.IOException

setOutputFormat

void setOutputFormat(OutputFormat format)
Sets the OutputFormat to use during serialization.

Parameters:
format - The output format to use.

setOutputByteStream

void setOutputByteStream(java.io.OutputStream output)
Sets the OutputStream to use.

Parameters:
output - the OutputStream to use


Copyright © 2011. All Rights Reserved.