|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Common interface for OpenCms XML parsers. Classes and interfaces for each customized parser type have to be implemtented.
| Field Summary | |
static int |
C_XML_LINE_WIDTH
Line width used for XML documents |
| 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. |
Document |
parse(InputStream in)
|
Document |
parse(Reader in)
Parses the given text. |
String |
toString()
Gets a description of the parser. |
| Field Detail |
public static final int C_XML_LINE_WIDTH
| Method Detail |
public Document createEmptyDocument(String docNod)
throws Exception
Exception
public void getXmlText(Document doc,
OutputStream out,
String encoding)
doc - 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)
doc - 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)
doc - Document to be printed.out - Writer to print to.
public Node importNode(Document doc,
Node node)
doc - Destination document that should import the node.node - Node to be imported.
doc
public Document parse(Reader in)
throws Exception
in - Reader with the input text.
Exception
public Document parse(InputStream in)
throws Exception
Exceptionpublic String getOriginalEncoding(Document doc)
public String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||