Package org.exolab.castor.xml
Class BaseXercesJDK5Serializer
- java.lang.Object
-
- org.exolab.castor.xml.BaseXercesJDK5Serializer
-
- All Implemented Interfaces:
Serializer
- Direct Known Subclasses:
AIXXercesJDK5Serializer,XercesJDK5Serializer
public abstract class BaseXercesJDK5Serializer extends java.lang.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
Constructors Constructor Description BaseXercesJDK5Serializer()Creates an instance of this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.xml.sax.DocumentHandlerasDocumentHandler()Returns theDocumentHandlerto use for serialization.protected abstract java.lang.StringgetPackageName()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
-
getPackageName
protected abstract java.lang.String getPackageName()
-
setOutputCharStream
public void setOutputCharStream(java.io.Writer out)
Description copied from interface:SerializerSets the OutputCharStream to use.- Specified by:
setOutputCharStreamin interfaceSerializer- Parameters:
out- the OutputCharStream to use.- See Also:
Serializer.setOutputCharStream(java.io.Writer)
-
asDocumentHandler
public org.xml.sax.DocumentHandler asDocumentHandler() throws java.io.IOExceptionDescription copied from interface:SerializerReturns theDocumentHandlerto use for serialization.- Specified by:
asDocumentHandlerin interfaceSerializer- Returns:
- the DocumentHandler to use for serialization.
- Throws:
java.io.IOException- See Also:
Serializer.asDocumentHandler()
-
setOutputFormat
public void setOutputFormat(OutputFormat format)
Description copied from interface:SerializerSets theOutputFormatto use during serialization.- Specified by:
setOutputFormatin interfaceSerializer- Parameters:
format- The output format to use.- See Also:
#setOutputFormat(org.exolab.castor.xml.OutputFormat)
-
setOutputByteStream
public void setOutputByteStream(java.io.OutputStream output)
Description copied from interface:SerializerSets theOutputStreamto use.- Specified by:
setOutputByteStreamin interfaceSerializer- Parameters:
output- the OutputStream to use- See Also:
Serializer.setOutputByteStream(java.io.OutputStream)
-
-