org.enhydra.apache.xml.serialize
Class SerializerFactoryImpl
java.lang.Object
|
+--org.enhydra.apache.xml.serialize.SerializerFactory
|
+--org.enhydra.apache.xml.serialize.SerializerFactoryImpl
- final class SerializerFactoryImpl
- extends SerializerFactory
Default serializer factory can construct serializers for the three
markup serializers (XML, HTML, XHTML ).
- Version:
- $Revision: 1.2 $ $Date: 2005/01/26 08:28:45 $
- Author:
- Scott Boag, Assaf Arkin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializerFactoryImpl
SerializerFactoryImpl(String method)
makeSerializer
public Serializer makeSerializer(OutputFormat format)
- Description copied from class:
SerializerFactory
- Create a new serializer based on the
OutputFormat
.
If this method is used to create the serializer, the Serializer.setOutputByteStream(java.io.OutputStream)
or Serializer.setOutputCharStream(java.io.Writer)
methods must be called before serializing a document.
- Overrides:
makeSerializer
in class SerializerFactory
makeSerializer
public Serializer makeSerializer(Writer writer,
OutputFormat format)
- Description copied from class:
SerializerFactory
- Create a new serializer, based on the
OutputFormat
and
using the writer as the output character stream. If this
method is used, the encoding property will be ignored.
- Overrides:
makeSerializer
in class SerializerFactory
makeSerializer
public Serializer makeSerializer(OutputStream output,
OutputFormat format)
throws UnsupportedEncodingException
- Description copied from class:
SerializerFactory
- Create a new serializer, based on the
OutputFormat
and
using the output byte stream and the encoding specified in the
output format.
- Overrides:
makeSerializer
in class SerializerFactory
- Following copied from class:
org.enhydra.apache.xml.serialize.SerializerFactory
- Throws:
UnsupportedEncodingException
- The specified encoding is
not supported
getSupportedMethod
protected String getSupportedMethod()
- Description copied from class:
SerializerFactory
- Returns the method supported by this factory and used to register
the factory. This call is required so factories can be added from
a properties file by knowing only the class name. This method is
protected, it is only required by this class but must be implemented
in derived classes.
- Overrides:
getSupportedMethod
in class SerializerFactory
Copyright © 1999 The Apache Software Foundation. All Rights reserved.