java.lang.Object | |
↳ | org.apache.xml.serialize.DOMSerializerImpl |
This class is deprecated.
Replaced by org.apache.xml.serializer.dom3.LSSerializerImpl in Xerces 2.9.0.
EXPERIMENTAL: Implemenatation of DOM Level 3 org.w3c.ls.LSSerializer by delegating serialization
calls to XMLSerializer
.
LSSerializer provides an API for serializing (writing) a DOM document out in an
XML document. The XML data is written to an output stream.
During serialization of XML data, namespace fixup is done when possible as
defined in DOM Level 3 Core, Appendix B.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
short | CDATA | ||||||||||
short | COMMENTS | ||||||||||
short | DISCARDDEFAULT | ||||||||||
short | DOM_ELEMENT_CONTENT_WHITESPACE | ||||||||||
short | ENTITIES | ||||||||||
short | INFOSET | ||||||||||
short | NAMESPACES | ||||||||||
short | NSDECL | ||||||||||
short | PRETTY_PRINT | ||||||||||
short | SPLITCDATA | ||||||||||
short | WELLFORMED | ||||||||||
short | XMLDECL |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
features | REVISIT: Currently we handle 3 different configurations, would be nice just have one configuration that has different recognized parameters depending if it is used in Core/LS. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new LSSerializer.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DOM L3-EXPERIMENTAL:
Check if parameter can be set
| |||||||||||
When the application provides a filter, the serializer will call out
to the filter before serializing each Node.
| |||||||||||
DOM L3 EXPERIMENTAL:
The end-of-line sequence of characters to be used in the XML being
written out.
| |||||||||||
DOM L3-EXPERIMENTAL:
Getter for boolean and object parameters
| |||||||||||
DOM Level 3 Core CR - Experimental.
| |||||||||||
When the application provides a filter, the serializer will call out
to the filter before serializing each Node.
| |||||||||||
DOM L3 EXPERIMENTAL:
The end-of-line sequence of characters to be used in the XML being
written out.
| |||||||||||
DOM L3-EXPERIMENTAL:
Setter for boolean and object parameters
| |||||||||||
Serialize the specified node as described above in the general
description of the
LSSerializer interface. | |||||||||||
DOM L3 EXPERIMENTAL:
Serialize the specified node as described above in the description of
LSSerializer . | |||||||||||
Serialize the specified node as described above in the general
description of the
LSSerializer interface. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.w3c.dom.DOMConfiguration
| |||||||||||
From interface
org.w3c.dom.ls.LSSerializer
|
REVISIT: Currently we handle 3 different configurations, would be nice just have one configuration that has different recognized parameters depending if it is used in Core/LS.
Constructs a new LSSerializer.
The constructor turns on the namespace support in XMLSerializer
and
initializes the following fields: fNSBinder, fLocalNSBinder, fSymbolTable,
fEmptySymbol, fXmlSymbol, fXmlnsSymbol, fNamespaceCounter, fFeatures.
DOM L3-EXPERIMENTAL: Check if parameter can be set
When the application provides a filter, the serializer will call out to the filter before serializing each Node. Attribute nodes are never passed to the filter. The filter implementation can choose to remove the node from the stream or to terminate the serialization early.
DOM L3 EXPERIMENTAL: The end-of-line sequence of characters to be used in the XML being written out. The only permitted values are these:
null
null
.
DOM L3-EXPERIMENTAL: Getter for boolean and object parameters
DOMException |
---|
DOM Level 3 Core CR - Experimental.
The list of the parameters supported by this
DOMConfiguration
object and for which at least one value
can be set by the application. Note that this list can also contain
parameter names defined outside this specification.
When the application provides a filter, the serializer will call out to the filter before serializing each Node. Attribute nodes are never passed to the filter. The filter implementation can choose to remove the node from the stream or to terminate the serialization early.
DOM L3 EXPERIMENTAL: The end-of-line sequence of characters to be used in the XML being written out. The only permitted values are these:
null
null
.
DOM L3-EXPERIMENTAL: Setter for boolean and object parameters
DOMException |
---|
Serialize the specified node as described above in the general
description of the LSSerializer
interface. The output
is written to the supplied LSOutput
.
When writing to a LSOutput
, the encoding is found by
looking at the encoding information that is reachable through the
LSOutput
and the item to be written (or its owner
document) in this order:
LSOutput.encoding
,
Document.actualEncoding
,
Document.xmlEncoding
.
LSOutput
, a
"no-output-specified" error is raised.node | The node to serialize. |
---|---|
destination | The destination for the serialized DOM. |
true
if node
was
successfully serialized and false
in case the node
couldn't be serialized.
LSException |
---|
DOM L3 EXPERIMENTAL:
Serialize the specified node as described above in the description of
LSSerializer
. The result of serializing the node is
returned as a string. Writing a Document or Entity node produces a
serialized form that is well formed XML. Writing other node types
produces a fragment of text in a form that is not fully defined by
this document, but that should be useful to a human for debugging or
diagnostic purposes.
wnode | The node to be written. |
---|
DOMException | DOMSTRING_SIZE_ERR: The resulting string is too long to fit in a
DOMString . |
---|---|
LSException | SERIALIZE_ERR: Unable to serialize the node. DOM applications should
attach a DOMErrorHandler using the parameter
"error-handler" to get details on error.
|
Serialize the specified node as described above in the general
description of the LSSerializer
interface. The output
is written to the supplied URI.
When writing to a URI, the encoding is found by looking at the
encoding information that is reachable through the item to be written
(or its owner document) in this order:
Document.inputEncoding
,
Document.xmlEncoding
.
node | The node to serialize. |
---|---|
URI | The URI to write to. |
true
if node
was
successfully serialized and false
in case the node
couldn't be serialized.
LSException |
---|