org.exolab.castor.xml

Interface Serializer

public interface Serializer

Interface contract for XML serialization business.

Author: Werner Guttmann

Method Summary
DocumentHandlerasDocumentHandler()
Returns the DocumentHandler to use for serialization.
voidsetOutputByteStream(OutputStream output)
Sets the OutputStream to use.
voidsetOutputCharStream(Writer out)
Sets the OutputCharStream to use.
voidsetOutputFormat(OutputFormat format)
Sets the OutputFormat to use during serialization.

Method Detail

asDocumentHandler

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

Returns: the DocumentHandler to use for serialization.

Throws: IOException

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