public final class DOM3SerializerImpl extends Object implements DOM3Serializer
Constructor and Description |
---|
DOM3SerializerImpl(SerializationHandler handler)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
public DOM3SerializerImpl(SerializationHandler handler)
handler
- An instance of the SerializationHandler interface.public DOMErrorHandler getErrorHandler()
getErrorHandler
in interface DOM3Serializer
public LSSerializerFilter getNodeFilter()
getNodeFilter
in interface DOM3Serializer
public char[] getNewLine()
public void serializeDOM3(Node node) throws IOException
serializeDOM3
in interface DOM3Serializer
node
- the Level 3 DOM node to serializeIOException
- if an I/O exception occured while serializingpublic void setErrorHandler(DOMErrorHandler handler)
setErrorHandler
in interface DOM3Serializer
handler
- the Level 3 DOMErrorHandlerpublic void setNodeFilter(LSSerializerFilter filter)
setNodeFilter
in interface DOM3Serializer
filter
- the Level 3 LSSerializerFilterpublic void setSerializationHandler(SerializationHandler handler)
handler
- An instance of SerializationHandlerpublic void setNewLine(char[] newLine)
setNewLine
in interface DOM3Serializer
newLine
- The end-of-line sequence of characters to be used during serialization.Copyright © 2016 JBoss by Red Hat. All rights reserved.