org.apache.xml.serializer.dom3
public final class LSSerializerImpl extends Object implements DOMConfiguration, LSSerializer
org.apache.xml.serializer.ToStream
or
one of its derived classes depending on the serialization method, while walking
the DOM in DOM3TreeWalker.Version: $Id:
See Also: org.w3c.dom.ls.LSSerializer
org.w3c.dom.DOMConfiguration
UNKNOWN: internal
Constructor Summary | |
---|---|
LSSerializerImpl()
Constructor: Creates a LSSerializerImpl object. |
Method Summary | |
---|---|
boolean | canSetParameter(String name, Object value)
Checks if setting a parameter to a specific value is supported.
|
DOMConfiguration | getDomConfig()
Returns the DOMConfiguration of the LSSerializer.
|
DOMErrorHandler | getErrorHandler()
This method returns the LSSerializer's error handler.
|
LSSerializerFilter | getFilter()
Returns the DOMConfiguration of the LSSerializer.
|
String | getNewLine()
Returns the End-Of-Line sequence of characters to be used in the XML
being serialized. |
Object | getParameter(String name)
This method returns the value of a parameter if known.
|
DOMStringList | getParameterNames()
This method returns a of the parameters supported by this DOMConfiguration object
and for which at least one value can be set by the application
|
void | initializeSerializerProps()
Initializes the underlying serializer's configuration depending on the
default DOMConfiguration parameters. |
void | setFilter(LSSerializerFilter filter)
Set a LSSerilizerFilter on the LSSerializer. |
void | setNewLine(String newLine)
Sets the End-Of-Line sequence of characters to be used in the XML
being serialized. |
void | setParameter(String name, Object value)
This method sets the value of the named parameter.
|
boolean | write(Node nodeArg, LSOutput destination)
Serializes the specified node to the specified LSOutput and returns true if the Node
was successfully serialized.
|
String | writeToString(Node nodeArg)
Serializes the specified node and returns a String with the serialized
data to the caller.
|
boolean | writeToURI(Node nodeArg, String uri)
Serializes the specified node to the specified URI and returns true if the Node
was successfully serialized.
|
Parameters: name A String containing the DOMConfiguration parameter name. value An Object specifying the value of the corresponding parameter.
Since: DOM Level 3
See Also: org.w3c.dom.DOMConfiguration#canSetParameter(java.lang.String, java.lang.Object)
Returns: A DOMConfiguration object.
Since: DOM Level 3
See Also: org.w3c.dom.ls.LSSerializer#getDomConfig()
Returns: Returns the fDOMErrorHandler.
Returns: A LSSerializerFilter object.
Since: DOM Level 3
See Also: org.w3c.dom.ls.LSSerializer#getFilter()
Returns: A String containing the end-of-line character sequence used in serialization.
Since: DOM Level 3
See Also: org.w3c.dom.ls.LSSerializer#getNewLine()
Parameters: name A String containing the DOMConfiguration parameter name whose value is to be returned.
Returns: Object The value of the parameter if known.
See Also: org.w3c.dom.DOMConfiguration#getParameter(java.lang.String)
Returns: DOMStringList A list of DOMConfiguration parameters recognized by the serializer
See Also: org.w3c.dom.DOMConfiguration#getParameterNames()
UNKNOWN: internal
Parameters: filter A LSSerializerFilter to be applied to the stream to serialize.
Since: DOM Level 3
See Also: org.w3c.dom.ls.LSSerializer#setFilter
Parameters: newLine a String that is the end-of-line character sequence to be used in serialization.
Since: DOM Level 3
See Also: org.w3c.dom.ls.LSSerializer#setNewLine
Parameters: name A String containing the DOMConfiguration parameter name. value An Object contaiing the parameters value to set.
See Also: org.w3c.dom.DOMConfiguration#setParameter(java.lang.String, java.lang.Object)
Parameters: nodeArg The Node to serialize.
Throws: org.w3c.dom.ls.LSException SERIALIZE_ERR: Raised if the LSSerializer was unable to serialize the node.
Since: DOM Level 3
See Also: org.w3c.dom.ls.LSSerializer#write(org.w3c.dom.Node, org.w3c.dom.ls.LSOutput)
Parameters: nodeArg The Node to serialize.
Throws: org.w3c.dom.ls.LSException SERIALIZE_ERR: Raised if the LSSerializer was unable to serialize the node.
Since: DOM Level 3
See Also: org.w3c.dom.ls.LSSerializer#writeToString(org.w3c.dom.Node)
Parameters: nodeArg The Node to serialize.
Throws: org.w3c.dom.ls.LSException SERIALIZE_ERR: Raised if the LSSerializer was unable to serialize the node.
Since: DOM Level 3
See Also: org.w3c.dom.ls.LSSerializer#writeToURI(org.w3c.dom.Node, String)