FileDocCategorySizeDatePackage
SerializationHandler.javaAPI DocJava SE 5 API3712Fri Aug 26 14:56:02 BST 2005com.sun.org.apache.xml.internal.serializer

SerializationHandler

public interface SerializationHandler implements ErrorHandler, DeclHandler, DOMSerializer, XSLOutputAttributes, ExtendedLexicalHandler, 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().

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
com.sun.org.apache.xml.internal.serializer.Serializer#asContentHandler()
see
com.sun.org.apache.xml.internal.serializer.ToSAXHandler

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
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
NamespaceMappings

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

param
transformer the transformer associated with the serializer.