FileDocCategorySizeDatePackage
SerializationHandler.javaAPI DocJava SE 6 API3945Tue Jun 10 00:23:06 BST 2008com.sun.org.apache.xml.internal.serializer

SerializationHandler

public interface SerializationHandler implements ErrorHandler, DeclHandler, DOMSerializer, XSLOutputAttributes, ExtendedLexicalHandler, DTDHandler, ExtendedContentHandler, Serializer
This interface is the one that a serializer implements. It is a group of other interfaces, such as ExtendedContentHandler, ExtendedLexicalHandler etc. In addition there are other methods, such as reset(). This class is public only because it is used in another package, it is not a public API.
xsl.usage
internal

Fields Summary
Constructors Summary
Methods Summary
public voidclose()

public voidflushPending()
Flush any pending events currently queued up in the serializer. This will flush any input that the serializer has which it has not yet sent as output.

public javax.xml.transform.TransformergetTransformer()
Get the transformer associated with the serializer.

return
Transformer the transformer associated with the serializer.

public voidserialize(org.w3c.dom.Node node)
Notify that the serializer should take this DOM node as input to be serialized.

param
node the DOM node to be serialized.
throws
IOException

public voidsetContentHandler(org.xml.sax.ContentHandler ch)
Set the SAX Content handler that the serializer sends its output to. This method only applies to a ToSAXHandler, not to a ToStream serializer.

see
Serializer#asContentHandler()
see
ToSAXHandler

public voidsetDTDEntityExpansion(boolean expand)
Default behavior is to expand DTD entities, that is the initall default value is true.

param
expand true if DTD entities are to be expanded, false if they are to be left as DTD entity references.

public booleansetEscaping(boolean escape)
Turns special character escaping on/off. Note that characters will never, even if this option is set to 'true', be escaped within CDATA sections in output XML documents.

param
escape true if escaping is to be set on.

public voidsetIndentAmount(int spaces)
Set the number of spaces to indent for each indentation level.

param
spaces the number of spaces to indent for each indentation level.

public voidsetNamespaceMappings(com.sun.org.apache.xml.internal.serializer.NamespaceMappings mappings)
Used only by TransformerSnapshotImpl to restore the serialization to a previous state.

param
mappings NamespaceMappings

public voidsetTransformer(javax.xml.transform.Transformer transformer)
Set the transformer associated with the serializer.

param
transformer the transformer associated with the serializer.