|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.six.XmlStreamReader
public class XmlStreamReader
This is the most simple service class to read a XML stream into a hierarchical String based structure or into a DOM tree. It is completely build on JAXP, so any compliant parser package can be used with it.
| Field Summary |
|---|
| Fields inherited from interface org.pf.pax.SAXConstants |
|---|
FEATURE_NAMESPACE_PREFIXES, FEATURE_NAMESPACES, FEATURE_VALIDATING |
| Method Summary | |
|---|---|
static org.w3c.dom.Document |
loadDOM(org.xml.sax.InputSource source,
boolean validating)
Read the given source with an XML parser and return the DOM tree structure. |
static org.w3c.dom.Document |
loadDOM(java.io.InputStream xmlStream,
java.lang.String uri,
boolean validating)
Read the given stream with an XML parser and return the DOM tree structure. |
static Element |
loadFrom(org.xml.sax.InputSource source,
boolean validating)
Read the given input source with an XML parser and return the element structure. |
static Element |
loadFrom(java.io.InputStream xmlStream)
Read the given stream with an XML parser and return the element structure. |
static Element |
loadFrom(java.io.InputStream xmlStream,
boolean validating)
Read the given stream with an XML parser and return the element structure. |
static Element |
loadFrom(java.io.InputStream xmlStream,
java.lang.String uri,
boolean validating)
Read the given stream with an XML parser and return the element structure. |
static org.w3c.dom.Document |
readDOM(java.io.File file,
boolean validating)
Read the given file as XML stream and return the DOM tree structure. |
static org.w3c.dom.Document |
readDOM(java.io.InputStream xmlStream,
java.lang.String uri,
boolean validating)
Read the given stream with an XML parser and return the DOM tree structure. |
static org.w3c.dom.Document |
readDOM(java.lang.String xmlFileName)
Read the file with the given name as XML stream and return the DOM tree structure. |
static org.w3c.dom.Document |
readDOM(java.lang.String xmlFileName,
boolean validating)
Read the file with the given name as XML stream and return the DOM tree structure. |
static Element |
readFrom(java.io.File file,
boolean validating)
Read the given file as XML stream and return the element structure. |
static Element |
readFrom(java.io.InputStream xmlStream)
Read the given stream with an XML parser and return the element structure. |
static Element |
readFrom(java.io.InputStream xmlStream,
boolean validating)
Read the given stream with an XML parser and return the element structure. |
static Element |
readFrom(java.io.InputStream xmlStream,
java.lang.String uri,
boolean validating)
Read the given stream with an XML parser and return the element structure. |
static Element |
readFrom(java.lang.String xmlFileName)
Read the file with the given name as XML stream and return the element structure. |
static Element |
readFrom(java.lang.String xmlFileName,
boolean validating)
Read the file with the given name as XML stream and return the element structure. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Element readFrom(java.lang.String xmlFileName)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
xmlFileName - The name of the file to read
public static Element readFrom(java.lang.String xmlFileName,
boolean validating)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
xmlFileName - The name of the file to readvalidating - if true the parser will validate against any defined DTD
public static Element readFrom(java.io.File file,
boolean validating)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
file - The file to readvalidating - if true the parser will validate against any defined DTD
public static Element readFrom(java.io.InputStream xmlStream,
java.lang.String uri,
boolean validating)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
xmlStream - The XML stream to readuri - The URI of the streamvalidating - if true the parser will validate against any defined DTD
public static org.w3c.dom.Document readDOM(java.lang.String xmlFileName)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
xmlFileName - The name of the file to read
public static org.w3c.dom.Document readDOM(java.lang.String xmlFileName,
boolean validating)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
xmlFileName - The name of the file to readvalidating - if true the parser will validate against any defined DTD
public static org.w3c.dom.Document readDOM(java.io.File file,
boolean validating)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
file - The file to readvalidating - if true the parser will validate against any defined DTD
public static org.w3c.dom.Document readDOM(java.io.InputStream xmlStream,
java.lang.String uri,
boolean validating)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
xmlStream - The XML stream to readuri - The URI of the streamvalidating - if true the parser will validate against any defined DTD
public static Element readFrom(java.io.InputStream xmlStream,
boolean validating)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
xmlStream - The XML stream to readvalidating - if true the parser will validate against any defined DTD
public static Element readFrom(java.io.InputStream xmlStream)
All exceptions will be caught and logged using the current component logger
(see LoggerProvider).
xmlStream - The XML stream to read
public static Element loadFrom(java.io.InputStream xmlStream)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
xmlStream - The XML stream to read
java.io.IOException - If anything is wrong with reading the stream
javax.xml.parsers.ParserConfigurationException - See javax.xml.parsers for details
org.xml.sax.SAXException - See org.xml.sax for details
public static Element loadFrom(java.io.InputStream xmlStream,
boolean validating)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
xmlStream - The XML stream to readvalidating - if true the parser will validate against any defined DTD
java.io.IOException - If anything is wrong with reading the stream
javax.xml.parsers.ParserConfigurationException - See javax.xml.parsers for details
org.xml.sax.SAXException - See org.xml.sax for details
public static Element loadFrom(java.io.InputStream xmlStream,
java.lang.String uri,
boolean validating)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
xmlStream - The XML stream to readuri - The URI of the streamvalidating - if true the parser will validate against any defined DTD
java.io.IOException - If anything is wrong with reading the stream
javax.xml.parsers.ParserConfigurationException - See javax.xml.parsers for details
org.xml.sax.SAXException - See org.xml.sax for details
public static Element loadFrom(org.xml.sax.InputSource source,
boolean validating)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
source - The input source that contains the XML stream to readvalidating - if true the parser will validate against any defined DTD
java.io.IOException - If anything is wrong with reading the stream
javax.xml.parsers.ParserConfigurationException - See javax.xml.parsers for details
org.xml.sax.SAXException - See org.xml.sax for details
public static org.w3c.dom.Document loadDOM(java.io.InputStream xmlStream,
java.lang.String uri,
boolean validating)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
xmlStream - The XML stream to readuri - The URI of the streamvalidating - if true the parser will validate against any defined DTD
java.io.IOException - If anything is wrong with reading the stream
javax.xml.parsers.ParserConfigurationException - See javax.xml.parsers for details
org.xml.sax.SAXException - See org.xml.sax for details
public static org.w3c.dom.Document loadDOM(org.xml.sax.InputSource source,
boolean validating)
throws java.io.IOException,
org.xml.sax.SAXException,
javax.xml.parsers.ParserConfigurationException
source - The input source that contains the XML stream to readvalidating - if true the parser will validate against any defined DTD
java.io.IOException - If anything is wrong with reading the stream
javax.xml.parsers.ParserConfigurationException - See javax.xml.parsers for details
org.xml.sax.SAXException - See org.xml.sax for details
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||