org.apache.xml.serializer.dom3
Class DOM3SerializerImpl
java.lang.Object
org.apache.xml.serializer.dom3.DOM3SerializerImpl
- DOM3Serializer
public final class DOM3SerializerImpl
extends java.lang.Object
This class implements the DOM3Serializer interface.
DOMErrorHandler | getErrorHandler() - Returns a DOMErrorHandler set on the DOM Level 3 Serializer.
|
char[] | getNewLine() - Gets the end-of-line sequence of characters to be used during serialization.
|
LSSerializerFilter | getNodeFilter() - Returns a LSSerializerFilter set on the DOM Level 3 Serializer to filter nodes
during serialization.
|
void | serializeDOM3(Node node) - Serializes the Level 3 DOM node by creating an instance of DOM3TreeWalker
which traverses the DOM tree and invokes handler events to serialize
the DOM NOde.
|
void | setErrorHandler(DOMErrorHandler handler) - Sets a DOMErrorHandler on the DOM Level 3 Serializer.
|
void | setNewLine(char[] newLine) - Sets the end-of-line sequence of characters to be used during serialization.
|
void | setNodeFilter(LSSerializerFilter filter) - Sets a LSSerializerFilter on the DOM Level 3 Serializer to filter nodes
during serialization.
|
void | setSerializationHandler(SerializationHandler handler) - Sets a SerializationHandler on the DOM Serializer.
|
DOM3SerializerImpl
public DOM3SerializerImpl(SerializationHandler handler)
Constructor
handler
- An instance of the SerializationHandler interface.
getErrorHandler
public DOMErrorHandler getErrorHandler()
Returns a DOMErrorHandler set on the DOM Level 3 Serializer.
This interface is a public API.
- getErrorHandler in interface DOM3Serializer
- A Level 3 DOMErrorHandler
getNewLine
public char[] getNewLine()
Gets the end-of-line sequence of characters to be used during serialization.
getNodeFilter
public LSSerializerFilter getNodeFilter()
Returns a LSSerializerFilter set on the DOM Level 3 Serializer to filter nodes
during serialization.
This interface is a public API.
- getNodeFilter in interface DOM3Serializer
- The Level 3 LSSerializerFilter
serializeDOM3
public void serializeDOM3(Node node)
throws IOException
Serializes the Level 3 DOM node by creating an instance of DOM3TreeWalker
which traverses the DOM tree and invokes handler events to serialize
the DOM NOde. Throws an exception only if an I/O exception occured
while serializing.
This interface is a public API.
- serializeDOM3 in interface DOM3Serializer
node
- the Level 3 DOM node to serialize
setErrorHandler
public void setErrorHandler(DOMErrorHandler handler)
Sets a DOMErrorHandler on the DOM Level 3 Serializer.
This interface is a public API.
- setErrorHandler in interface DOM3Serializer
handler
- the Level 3 DOMErrorHandler
setNewLine
public void setNewLine(char[] newLine)
Sets the end-of-line sequence of characters to be used during serialization.
- setNewLine in interface DOM3Serializer
newLine
- The end-of-line sequence of characters to be used during serialization.
setNodeFilter
public void setNodeFilter(LSSerializerFilter filter)
Sets a LSSerializerFilter on the DOM Level 3 Serializer to filter nodes
during serialization.
This interface is a public API.
- setNodeFilter in interface DOM3Serializer
filter
- the Level 3 LSSerializerFilter
setSerializationHandler
public void setSerializationHandler(SerializationHandler handler)
Sets a SerializationHandler on the DOM Serializer.
This interface is a public API.
handler
- An instance of SerializationHandler
Copyright © 2006 Apache XML Project. All Rights Reserved.