APIdia Launch Partner
Top Description Interfaces Classes
module java.xml

Package com.sun.org.apache.xml.internal.serializer


Processes SAX events into streams.

The com.sun.org.apache.xml.internal.serializer.SerializerFactory is used to create a com.sun.org.apache.xml.internal.serializer.Serializer from a set of output properties (see javax.xml.transform.OutputKeys).

com.sun.org.apache.xml.internal.serializer.ToStream acts as the main baseclass for the Xalan serializer implementations. com.sun.org.apache.xml.internal.serializer.ToHTMLStream derives from this to implement HTML serialization. com.sun.org.apache.xml.internal.serializer.ToTextStream implements plain text serialization. com.sun.org.apache.xml.internal.serializer.ToXMLStream implements XML serialization.

XML mapping from characters to entity references is defined in XMLEntities.res. HTML entity reference mapping is defined in HTMLEntities.res.

Encoding information is defined in com.sun.org.apache.xml.internal.serializer.Encodings.

Interface Summary

Modifier and TypeInterface and Description
public interface
DOM3Serializer

Interface for a DOM serializer capable of serializing DOMs as specified in the DOM Level 3 Save Recommendation.

public interface
DOMSerializer

Interface for a DOM serializer implementation.

pack-priv interface
ExtendedContentHandler

This interface describes extensions to the SAX ContentHandler interface.

pack-priv interface
ExtendedLexicalHandler

This interface has extensions to the standard SAX LexicalHandler interface.

public interface
SerializationHandler

This interface is the one that a serializer implements.

public interface
Serializer

The Serializer interface is implemented by a serializer to enable users to:

  • get and set streams or writers
  • configure the serializer with key/value properties
  • get an org.xml.sax.ContentHandler or a DOMSerializer to provide input to
pack-priv interface
SerializerConstants

Constants used in serialization, such as the string "xmlns"

public interface
SerializerTrace

This interface defines a set of integer constants that identify trace event types.

public interface
TransformStateSetter

This interface is meant to be used by a base interface to TransformState, but which as only the setters which have non Xalan specific types in their signature, so that there are no dependancies of the serializer on Xalan.

pack-priv interface
WriterChain

It is unfortunate that java.io.Writer is a class rather than an interface.

pack-priv interface
XSLOutputAttributes

This interface has methods associated with the XSLT xsl:output attribues specified in the stylesheet that effect the format of the document output.

Class Summary

Modifier and TypeClass and Description
public class
AttributesImplSerializer

This class extends org.xml.sax.helpers.AttributesImpl which implements org.

pack-priv class
CharInfo

This class provides services that tell if a character should have special treatement, such as entity reference substitution or normalization of a newline character.

pack-priv class
ElemContext

This class is a stack frame that consists of information about the element currently being processed by a serializer.</b1></b2>

public class
ElemDesc

This class has a series of flags (bit values) that describe an HTML element This class is public because XSLTC uses it, it is not a public API.

public class
EmptySerializer

This class is an adapter class.

public class
EncodingInfo

Holds information about a given encoding, which is the Java name for the encoding, the equivalent ISO name.

public class
Encodings

Provides information about encodings.

public class
Method

This class defines the constants which are the names of the four default output methods.

public class
NamespaceMappings

This class keeps track of the currently defined namespaces.</sentance></paragraph></paragraph></chapter></sentance>

public class
OutputPropertiesFactory

This class is a factory to generate a set of default properties of key/value pairs that are used to create a serializer through the factory SerilizerFactory.

public class
OutputPropertyUtils

This class contains some static methods that act as helpers when parsing a Java Property object.

public abstract class
SerializerBase

This class acts as a base class for the XML "serializers" and the stream serializers.

public class
SerializerFactory

This class is a public API, it is a factory for creating serializers.

pack-priv class
SerializerTraceWriter

This class wraps the real writer, it only purpose is to send CHARACTERTOSTREAM events to the trace listener.

public class
ToHTMLSAXHandler

This class accepts SAX-like calls, then sends true SAX calls to a wrapped SAX handler.

public class
ToHTMLStream

This serializer takes a series of SAX or SAX-like events and writes its output to the given stream.

public abstract class
ToSAXHandler

This class is used to provide a base behavior to be inherited by other To...SAXHandler serializers.

public abstract class
ToStream

This abstract class is a base class for other stream serializers (xml, html, text ...) that write output to a stream.

public class
ToTextSAXHandler

This class converts SAX-like event to SAX events for xsl:output method "text".

public class
ToTextStream

This class is not a public API.

public class
ToUnknownStream

This class wraps another SerializationHandler.

public class
ToXMLSAXHandler

This class receives notification of SAX-like events, and with gathered information over these calls it will invoke the equivalent SAX methods on a handler, the ultimate xsl:output method is known to be "xml".

public class
ToXMLStream

This class converts SAX or SAX-like calls to a serialized xml document.

public class
TreeWalker

This class does a pre-order walk of the DOM tree, calling a ContentHandler interface as it goes.

public class
Version

Administrative class to keep track of the version number of the Serializer release.

pack-priv class
WriterToASCI

This class writes ASCII to a byte stream as quickly as possible.

pack-priv class
WriterToUTF8Buffered

This class writes unicode characters to a byte stream (java.io.OutputStream) as quickly as possible.