org.exolab.castor.xml
Class BaseXercesJDK5Serializer

java.lang.Object
  extended by org.exolab.castor.xml.BaseXercesJDK5Serializer
All Implemented Interfaces:
Serializer
Direct Known Subclasses:
AIXXercesJDK5Serializer, XercesJDK5Serializer

public abstract class BaseXercesJDK5Serializer
extends Object
implements Serializer

Xerces-specific implementation of the Serializer interface, used for JDK 5 only where Xerecs has been integrated with the core code base.

Since:
1.1
Version:
$Revision: 6216 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Werner Guttmann

Constructor Summary
BaseXercesJDK5Serializer()
          Creates an instance of this class.
 
Method Summary
 DocumentHandler asDocumentHandler()
          Returns the DocumentHandler to use for serialization.
protected abstract  String getPackageName()
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseXercesJDK5Serializer

public BaseXercesJDK5Serializer()
Creates an instance of this class.

Method Detail

getPackageName

protected abstract String getPackageName()

setOutputCharStream

public void setOutputCharStream(Writer out)
Description copied from interface: Serializer
Sets the OutputCharStream to use.

Specified by:
setOutputCharStream in interface Serializer
Parameters:
out - the OutputCharStream to use.
See Also:
{@inheritDoc}

asDocumentHandler

public DocumentHandler asDocumentHandler()
                                  throws IOException
Description copied from interface: Serializer
Returns the DocumentHandler to use for serialization.

Specified by:
asDocumentHandler in interface Serializer
Returns:
the DocumentHandler to use for serialization.
Throws:
IOException
See Also:
{@inheritDoc}

setOutputFormat

public void setOutputFormat(OutputFormat format)
Description copied from interface: Serializer
Sets the OutputFormat to use during serialization.

Specified by:
setOutputFormat in interface Serializer
Parameters:
format - The output format to use.
See Also:
#setOutputFormat(org.exolab.castor.xml.OutputFormat) {@inheritDoc}

setOutputByteStream

public void setOutputByteStream(OutputStream output)
Description copied from interface: Serializer
Sets the OutputStream to use.

Specified by:
setOutputByteStream in interface Serializer
Parameters:
output - the OutputStream to use
See Also:
{@inheritDoc}


Copyright © 2013. All Rights Reserved.