org.exolab.castor.xml

Interface Serializer

Known Implementing Classes:
WeblogicXercesSerializer, XercesSerializer

public interface Serializer

Interface contract for XML serialization business.
Author:
Werner Guttmann

Method Summary

DocumentHandler
asDocumentHandler()
Returns the DocumentHandler to use for serialization.
void
setOutputByteStream(OutputStream output)
Sets the OutputStream to use.
void
setOutputCharStream(Writer out)
Sets the OutputCharStream to use.
void
setOutputFormat(OutputFormat format)
Sets the OutputFormat to use during serialization.

Method Details

asDocumentHandler

public DocumentHandler asDocumentHandler()
            throws IOException
Returns the DocumentHandler to use for serialization.
Returns:
the DocumentHandler to use for serialization.

setOutputByteStream

public void setOutputByteStream(OutputStream output)
Sets the OutputStream to use.
Parameters:
output - the OutputStream to use

setOutputCharStream

public void setOutputCharStream(Writer out)
Sets the OutputCharStream to use.
Parameters:
out - the OutputCharStream to use.

setOutputFormat

public void setOutputFormat(OutputFormat format)
Sets the OutputFormat to use during serialization.
Parameters:
format - The output format to use.

Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com