|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
com.sun.xml.fastinfoset.Encoder
com.sun.xml.fastinfoset.dom.DOMDocumentSerializer
public class DOMDocumentSerializer
The Fast Infoset DOM serializer.
Instantiate this serializer to serialize a fast infoset document in accordance with the DOM API.
| Field Summary | |
|---|---|
protected Node[] |
_attributes
|
protected NamespaceContextImplementation |
_namespaceScopeContext
|
| Constructor Summary | |
|---|---|
DOMDocumentSerializer()
|
|
| Method Summary | |
|---|---|
protected void |
encodeAttribute(String namespaceURI,
String qName,
String localName)
|
protected void |
encodeElement(String namespaceURI,
String qName,
String localName)
|
void |
serialize(Document d)
Serialize a Document. |
void |
serialize(Node n)
Serialize a Node. |
protected void |
serializeCDATA(Node t)
|
protected void |
serializeComment(Node c)
|
protected void |
serializeElement(Node e)
|
protected void |
serializeElementAsDocument(Node e)
|
protected void |
serializeProcessingInstruction(Node pi)
|
protected void |
serializeText(Node t)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected NamespaceContextImplementation _namespaceScopeContext
protected Node[] _attributes
| Constructor Detail |
|---|
public DOMDocumentSerializer()
| Method Detail |
|---|
public final void serialize(Node n)
throws IOException
Node.
n - the node to serialize.
IOException
public final void serialize(Document d)
throws IOException
Document.
d - the document to serialize.
IOException
protected final void serializeElementAsDocument(Node e)
throws IOException
IOException
protected final void serializeElement(Node e)
throws IOException
IOException
protected final void serializeText(Node t)
throws IOException
IOException
protected final void serializeCDATA(Node t)
throws IOException
IOException
protected final void serializeComment(Node c)
throws IOException
IOException
protected final void serializeProcessingInstruction(Node pi)
throws IOException
IOException
protected final void encodeElement(String namespaceURI,
String qName,
String localName)
throws IOException
IOException
protected final void encodeAttribute(String namespaceURI,
String qName,
String localName)
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||