org.apache.xml.serializer
Class SerializerFactory
java.lang.Object
org.apache.xml.serializer.SerializerFactory
- public abstract class SerializerFactory
- extends Object
Factory for creating serializers.
SerializerFactory
public SerializerFactory()
getSerializer
public static Serializer getSerializer(Properties format)
- Returns a serializer for the specified output method.
If no implementation exists that supports the specified output method
an exception of some type will be thrown.
For a list of the default output methods see
Method
.
- Parameters:
format
- The output format, minimally the "method" property must be set.
- Returns:
- A suitable serializer.
- Throws:
IllegalArgumentException
- if method is
null or an appropriate serializer can't be found
Exception
- if the class for the serializer is found but does not
implement ContentHandler.
WrappedRuntimeException
- if an exception is thrown while trying to find serializer
Copyright ? 2004 Apache XML Project. All Rights Reserved.