|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.icl.saxon.trax.serialize.SerializerFactory
Factory for creating new serializers.
The factory is used with the default serializers provided by the implementation and named in the serializer.properties file of the implementation.
An implementation need only support the default output methods (XML, HTML and Text). Additional serializers may be constructed directly by the application.
Usage example:
Serializer ser; ser = SerializerFactory.getSerializer( Method.XML );or,
Serializer ser; OutputFormat format; format = SerializerFactory.getOutputFormat( Method.HTML ); ser = SerializerFactory.getSerializer( format );
Field Summary | |
static java.lang.String |
PropertiesResource
The name of the properties file listing all the supported serializers. |
static java.lang.String |
PropertyFormatPrefix
The prefix of a property supplying the class name for an output format implementing a specific method. |
static java.lang.String |
PropertyMethods
The name of the property listing all the supported output methods. |
static java.lang.String |
PropertySerializerPrefix
The prefix of a property supplying the class name for a serializer implementing a specific method. |
Constructor Summary | |
SerializerFactory()
|
Method Summary | |
static OutputFormat |
getOutputFormat(java.lang.String method)
Returns an output format for the specified output method. |
static Serializer |
getSerializer(OutputFormat format)
Returns a serializer for the specified output method. |
static Serializer |
getSerializer(java.lang.String method)
Returns a serializer for the specified output method. |
java.util.Enumeration |
listMethods()
Returns an enumeration of all the output methods supported by this implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PropertiesResource
public static final java.lang.String PropertyMethods
public static final java.lang.String PropertySerializerPrefix
public static final java.lang.String PropertyFormatPrefix
Constructor Detail |
public SerializerFactory()
Method Detail |
public static Serializer getSerializer(java.lang.String method)
Method
.method
- The output methodpublic static Serializer getSerializer(OutputFormat format)
Method
.format
- The output formatpublic static OutputFormat getOutputFormat(java.lang.String method)
OutputFormat
to provide
additional properties.method
- The output methodpublic java.util.Enumeration listMethods()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |