|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.opencms.template.CmsXmlXercesParser
Implementation of the OpenCms XML parser interface for the Xerces parser.
| Field Summary |
| Fields inherited from interface com.opencms.template.I_CmsXmlParser |
C_XML_LINE_WIDTH |
| Constructor Summary | |
CmsXmlXercesParser()
|
|
| Method Summary | |
Document |
createEmptyDocument(String docNod)
Creates an empty DOM XML document. |
String |
getOriginalEncoding(Document doc)
|
void |
getXmlText(Document doc,
OutputStream out,
String encoding)
Calls a XML printer for converting a XML DOM document to a String. |
void |
getXmlText(Document doc,
Writer out)
Calls a XML printer for converting a XML DOM document to a String. |
void |
getXmlText(Document doc,
Writer out,
String encoding)
Calls a XML printer for converting a XML DOM document to a String. |
Node |
importNode(Document doc,
Node node)
Used to import a node from a foreign document. |
protected Document |
parse(InputSource input)
Common internal method to actually parse input. |
Document |
parse(InputStream in)
|
Document |
parse(Reader in)
Parses the given text with the Xerces parser. |
void |
serialize(Document doc,
OutputStream in)
|
String |
toString()
Gets a description of the parser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public CmsXmlXercesParser()
| Method Detail |
public Document createEmptyDocument(String docNod)
throws Exception
createEmptyDocument in interface I_CmsXmlParserdocNod - first Node in empty XML document
Exception
public void getXmlText(Document doc,
OutputStream out,
String encoding)
getXmlText in interface I_CmsXmlParserdoc - Document to be printed.out - OutputStream to print to.encoding - the character encoding to be used while serializing
document, if null - original or default encoding will be used
public void getXmlText(Document doc,
Writer out,
String encoding)
getXmlText in interface I_CmsXmlParserdoc - Document to be printed.out - Writer to print to.encoding - the character encoding to be used while serializing
public void getXmlText(Document doc,
Writer out)
getXmlText in interface I_CmsXmlParserdoc - Document to be printed.out - Writer to print to.
public Node importNode(Document doc,
Node node)
importNode in interface I_CmsXmlParserdoc - Destination document that should import the node.node - Node to be imported.
doc
public Document parse(Reader in)
throws Exception
parse in interface I_CmsXmlParserin - Reader with the input text.
Exception
public Document parse(InputStream in)
throws Exception
parse in interface I_CmsXmlParserException
protected Document parse(InputSource input)
throws Exception
Exception
public void serialize(Document doc,
OutputStream in)
throws Exception
Exceptionpublic String toString()
toString in interface I_CmsXmlParsertoString in class Objectpublic String getOriginalEncoding(Document doc)
getOriginalEncoding in interface I_CmsXmlParser
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||