public abstract class SerializerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
FactoriesProperty
Deprecated.
|
Constructor and Description |
---|
SerializerFactory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SerializerFactory |
getSerializerFactory(String method)
Deprecated.
Register a serializer factory, keyed by the given
method string.
|
protected abstract String |
getSupportedMethod()
Deprecated.
Returns the method supported by this factory and used to register
the factory.
|
abstract Serializer |
makeSerializer(OutputFormat format)
Deprecated.
Create a new serializer based on the
OutputFormat . |
abstract Serializer |
makeSerializer(OutputStream output,
OutputFormat format)
Deprecated.
Create a new serializer, based on the
OutputFormat and
using the output byte stream and the encoding specified in the
output format. |
abstract Serializer |
makeSerializer(Writer writer,
OutputFormat format)
Deprecated.
Create a new serializer, based on the
OutputFormat and
using the writer as the output character stream. |
static void |
registerSerializerFactory(SerializerFactory factory)
Deprecated.
Register a serializer factory, keyed by the given
method string.
|
public static final String FactoriesProperty
public static void registerSerializerFactory(SerializerFactory factory)
public static SerializerFactory getSerializerFactory(String method)
protected abstract String getSupportedMethod()
public abstract Serializer makeSerializer(OutputFormat format)
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.public abstract Serializer makeSerializer(Writer writer, OutputFormat format)
OutputFormat
and
using the writer as the output character stream. If this
method is used, the encoding property will be ignored.public abstract Serializer makeSerializer(OutputStream output, OutputFormat format) throws UnsupportedEncodingException
OutputFormat
and
using the output byte stream and the encoding specified in the
output format.UnsupportedEncodingException
- The specified encoding is
not supportedCopyright © 2012 JBoss by Red Hat. All Rights Reserved.