APIdia Launch Partner
Top Description Fields Constructors Methods
com.sun.org.apache.xml.internal.serializer.dom3

public final Class DOM3SerializerImpl

extends Object
implements DOM3Serializer
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xml.internal.serializer.DOM3Serializer
Imports
java.io.IOException, com.sun.org.apache.xml.internal.serializer.DOM3Serializer, .SerializationHandler, com.sun.org.apache.xml.internal.serializer.utils.WrappedRuntimeException, org.w3c.dom.DOMErrorHandler, .Node, org.w3c.dom.ls.LSSerializerFilter

This class implements the DOM3Serializer interface.

Field Summary

Modifier and TypeField and Description
private DOMErrorHandler
fErrorHandler

Private class members

private String
private SerializationHandler
private LSSerializerFilter

Constructor Summary

AccessConstructor and Description
public
DOM3SerializerImpl(SerializationHandler
An instance of the SerializationHandler interface.
handler
)

Constructor

Method Summary

Modifier and TypeMethod and Description
public DOMErrorHandler

Returns:

A Level 3 DOMErrorHandler
getErrorHandler
()

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.getErrorHandler.

Returns a DOMErrorHandler set on the DOM Level 3 Serializer.

public LSSerializerFilter

Returns:

The Level 3 LSSerializerFilter
getNodeFilter
()

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.getNodeFilter.

Returns a LSSerializerFilter set on the DOM Level 3 Serializer to filter nodes during serialization.

public void
serializeDOM3(Node
the Level 3 DOM node to serialize
node
)

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.serializeDOM3.

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.

public void
setErrorHandler(DOMErrorHandler
the Level 3 DOMErrorHandler
handler
)

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.setErrorHandler.

Sets a DOMErrorHandler on the DOM Level 3 Serializer.

public void
setNewLine(String
a String that is the end-of-line character sequence to be used in serialization.
newLine
)

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.setNewLine.

Sets the new line character to be used during serialization

public void
setNodeFilter(LSSerializerFilter
the Level 3 LSSerializerFilter
filter
)

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.setNodeFilter.

Sets a LSSerializerFilter on the DOM Level 3 Serializer to filter nodes during serialization.

public void
setSerializationHandler(SerializationHandler
An instance of SerializationHandler
handler
)

Sets a SerializationHandler on the DOM Serializer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fErrorHandlerback to summary
private DOMErrorHandler fErrorHandler

Private class members

fNewLineback to summary
private String fNewLine
fSerializationHandlerback to summary
private SerializationHandler fSerializationHandler
fSerializerFilterback to summary
private LSSerializerFilter fSerializerFilter

Constructor Detail

DOM3SerializerImplback to summary
public DOM3SerializerImpl(SerializationHandler handler)

Constructor

Parameters
handler:SerializationHandler

An instance of the SerializationHandler interface.

Method Detail

getErrorHandlerback to summary
public DOMErrorHandler getErrorHandler()

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.getErrorHandler.

Returns a DOMErrorHandler set on the DOM Level 3 Serializer. This interface is a public API.

Returns:DOMErrorHandler

A Level 3 DOMErrorHandler

getNodeFilterback to summary
public LSSerializerFilter getNodeFilter()

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.getNodeFilter.

Returns a LSSerializerFilter set on the DOM Level 3 Serializer to filter nodes during serialization. This interface is a public API.

Returns:LSSerializerFilter

The Level 3 LSSerializerFilter

serializeDOM3back to summary
public void serializeDOM3(Node node) throws IOException

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.serializeDOM3.

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.

Parameters
node:Node

the Level 3 DOM node to serialize

Exceptions
IOException:
if an I/O exception occured while serializing
setErrorHandlerback to summary
public void setErrorHandler(DOMErrorHandler handler)

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.setErrorHandler.

Sets a DOMErrorHandler on the DOM Level 3 Serializer. This interface is a public API.

Parameters
handler:DOMErrorHandler

the Level 3 DOMErrorHandler

setNewLineback to summary
public void setNewLine(String newLine)

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.setNewLine.

Sets the new line character to be used during serialization

Parameters
newLine:String

a String that is the end-of-line character sequence to be used in serialization.

setNodeFilterback to summary
public void setNodeFilter(LSSerializerFilter filter)

Implements com.sun.org.apache.xml.internal.serializer.DOM3Serializer.setNodeFilter.

Sets a LSSerializerFilter on the DOM Level 3 Serializer to filter nodes during serialization. This interface is a public API.

Parameters
filter:LSSerializerFilter

the Level 3 LSSerializerFilter

setSerializationHandlerback to summary
public void setSerializationHandler(SerializationHandler handler)

Sets a SerializationHandler on the DOM Serializer. This interface is a public API.

Parameters
handler:SerializationHandler

An instance of SerializationHandler