|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.xml.serialize.BaseMarkupSerializer
org.apache.xml.serialize.XMLSerializer
jcreek.cke.importexport.xml.DOMdocumentSerializer
The intention of this class is to gather methods for serialization of DOM documents to various output formats.
Field Summary |
Fields inherited from class org.apache.xml.serialize.BaseMarkupSerializer |
_docTypePublicId, _docTypeSystemId, _format, _indenting, _prefixes, _printer, _started |
Constructor Summary | |
DOMdocumentSerializer()
|
Method Summary | |
void |
saveToFile(java.lang.String doc,
java.lang.String filename)
Saves the specified document to a specified file. |
void |
serializeToFile(org.w3c.dom.Document doc,
java.lang.String filename)
Serializes the specified DOM document to a specified file. |
java.lang.String |
serializeToString(org.w3c.dom.Document doc)
Serializes the specified DOM document to a String. |
java.io.StringReader |
serializeToStringReader(org.w3c.dom.Document doc)
Serializes the specified DOM document to a String Reader. |
Methods inherited from class org.apache.xml.serialize.XMLSerializer |
endElement, endElement, getEntityRef, serializeElement, setOutputFormat, startDocument, startElement, startElement |
Methods inherited from class org.apache.xml.serialize.BaseMarkupSerializer |
asContentHandler, asDocumentHandler, asDOMSerializer, attributeDecl, characters, characters, comment, comment, content, elementDecl, endCDATA, endDocument, endDTD, endEntity, endNonEscaping, endPrefixMapping, endPreserving, enterElementState, externalEntityDecl, getElementState, getPrefix, ignorableWhitespace, internalEntityDecl, isDocumentState, leaveElementState, notationDecl, prepare, printDoctypeURL, printEscaped, printEscaped, printText, printText, processingInstruction, reset, serialize, serialize, serialize, serializeNode, serializePreRoot, setDocumentLocator, setOutputByteStream, setOutputCharStream, skippedEntity, startCDATA, startDocument, startDTD, startEntity, startNonEscaping, startPrefixMapping, startPreserving, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DOMdocumentSerializer()
Method Detail |
public void serializeToFile(org.w3c.dom.Document doc, java.lang.String filename)
doc
- the DOM document to serialize.filename
- the filename to serialize to.public void saveToFile(java.lang.String doc, java.lang.String filename)
doc
- the document to save.filename
- the filename to serialize to.public java.io.StringReader serializeToStringReader(org.w3c.dom.Document doc)
doc
- the DOM document to serialize.
StringReader
public java.lang.String serializeToString(org.w3c.dom.Document doc)
doc
- the DOM document to serialize.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |