|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xml.serializer.dom3.DOM3SerializerImpl
public final class DOM3SerializerImpl
This class implements the DOM3Serializer interface.
Field Summary | |
---|---|
private org.w3c.dom.DOMErrorHandler |
fErrorHandler
Private class members |
private java.lang.String |
fNewLine
|
private SerializationHandler |
fSerializationHandler
|
private org.w3c.dom.ls.LSSerializerFilter |
fSerializerFilter
|
Constructor Summary | |
---|---|
DOM3SerializerImpl(SerializationHandler handler)
Constructor |
Method Summary | |
---|---|
org.w3c.dom.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. |
org.w3c.dom.ls.LSSerializerFilter |
getNodeFilter()
Returns a LSSerializerFilter set on the DOM Level 3 Serializer to filter nodes during serialization. |
void |
serializeDOM3(org.w3c.dom.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(org.w3c.dom.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(org.w3c.dom.ls.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.w3c.dom.DOMErrorHandler fErrorHandler
private org.w3c.dom.ls.LSSerializerFilter fSerializerFilter
private java.lang.String fNewLine
private SerializationHandler fSerializationHandler
Constructor Detail |
---|
public DOM3SerializerImpl(SerializationHandler handler)
handler
- An instance of the SerializationHandler interface.Method Detail |
---|
public org.w3c.dom.DOMErrorHandler getErrorHandler()
getErrorHandler
in interface DOM3Serializer
public org.w3c.dom.ls.LSSerializerFilter getNodeFilter()
getNodeFilter
in interface DOM3Serializer
public char[] getNewLine()
public void serializeDOM3(org.w3c.dom.Node node) throws java.io.IOException
serializeDOM3
in interface DOM3Serializer
node
- the Level 3 DOM node to serialize
java.io.IOException
- if an I/O exception occured while serializingpublic void setErrorHandler(org.w3c.dom.DOMErrorHandler handler)
setErrorHandler
in interface DOM3Serializer
handler
- the Level 3 DOMErrorHandlerpublic void setNodeFilter(org.w3c.dom.ls.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |