org.apache.xalan.serialize
Class SerializerFactory

java.lang.Object
  extended byorg.apache.xalan.serialize.SerializerFactory

public abstract class SerializerFactory
extends Object

Factory for creating serializers.


Field Summary
private static Hashtable _formats
          Associates output methods to default output formats.
 
Constructor Summary
SerializerFactory()
           
 
Method Summary
static Serializer getSerializer(Properties format)
          Returns a serializer for the specified output method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_formats

private static Hashtable _formats
Associates output methods to default output formats.

Constructor Detail

SerializerFactory

public SerializerFactory()
Method Detail

getSerializer

public static Serializer getSerializer(Properties format)
Returns a serializer for the specified output method. Returns null if no implementation exists that supports the specified output method. For a list of the default output methods see Method.

Parameters:
format - The output format
Returns:
A suitable serializer, or null
Throws:
IllegalArgumentException - (apparently -sc) if method is null or an appropriate serializer can't be found
WrappedRuntimeException - (apparently -sc) if an exception is thrown while trying to find serializer