org.inria.ns.reflex.xml.serialize
Interface Serializer

All Superinterfaces:
Configurable
All Known Implementing Classes:
BatikSerializer, FOPSerializer, PageSerializer, PDFSerializer, PSSerializer, SwitchSerializer

public interface Serializer
extends Configurable

An XML serializer produce a byte stream from an XML source.

Author:
Philippe Poulard
See Also:
SerializerFactory

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.inria.ns.reflex.structures.Configurable
Configurable.Impl
 
Method Summary
 boolean acceptAttribute(QName name)
          Indicates whether this serializer accept an attribute or not.
 void serialize(URIResolver uriResolver, Source xmlSource, StreamResult xmlResult)
          A specific serialization of the source to the result.
 
Methods inherited from interface org.inria.ns.reflex.structures.Configurable
containsAttribute, getAttribute, getAttributes, mergeAttributes, setAttribute, setAttributes
 

Method Detail

serialize

void serialize(URIResolver uriResolver,
               Source xmlSource,
               StreamResult xmlResult)
               throws SerializeException
A specific serialization of the source to the result. A concrete implementation could serialize XSLFO to PDF, or SVG to JPEG.

Parameters:
uriResolver - The URI resolver that can retrieve resources.
xmlSource - The input to serialize.
xmlResult - The stream result.
Throws:
SerializeException

acceptAttribute

boolean acceptAttribute(QName name)
Indicates whether this serializer accept an attribute or not.

Parameters:
name - The name of the attribute.
Returns:
true if the attribute can be used to configure this serializer, false otherwise.