|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SAXEngine
SAXEngine provides an interface to interact with either the SAXBuilder or the SAXBuilderEngine. This makes it possible to do pooling of SAXEngines for parsing using instances of either SAXBuilder or SAXBuilderEngine.
org.jdom2.input.sax
Method Summary | |
---|---|
Document |
build(java.io.File file)
This builds a document from the supplied filename. |
Document |
build(org.xml.sax.InputSource in)
This builds a document from the supplied input source. |
Document |
build(java.io.InputStream in)
This builds a document from the supplied input stream. |
Document |
build(java.io.InputStream in,
java.lang.String systemId)
This builds a document from the supplied input stream. |
Document |
build(java.io.Reader characterStream)
This builds a document from the supplied Reader. |
Document |
build(java.io.Reader characterStream,
java.lang.String systemId)
This builds a document from the supplied Reader. |
Document |
build(java.lang.String systemId)
This builds a document from the supplied URI. |
Document |
build(java.net.URL url)
This builds a document from the supplied URL. |
org.xml.sax.DTDHandler |
getDTDHandler()
Returns the DTDHandler assigned, or null if none. |
org.xml.sax.EntityResolver |
getEntityResolver()
Returns the EntityResolver assigned, or null if none. |
org.xml.sax.ErrorHandler |
getErrorHandler()
Returns the ErrorHandler assigned, or null if none. |
boolean |
getExpandEntities()
Returns whether or not entities are being expanded into normal text content. |
boolean |
getIgnoringBoundaryWhitespace()
Returns whether or not the parser will elminate element content containing only whitespace. |
boolean |
getIgnoringElementContentWhitespace()
Returns whether element content whitespace is to be ignored during the build. |
JDOMFactory |
getJDOMFactory()
Returns the current JDOMFactory in use. |
boolean |
isValidating()
Returns whether validation is to be performed during the build. |
Method Detail |
---|
JDOMFactory getJDOMFactory()
JDOMFactory
in use.
boolean isValidating()
org.xml.sax.ErrorHandler getErrorHandler()
ErrorHandler
assigned, or null if none.
org.xml.sax.EntityResolver getEntityResolver()
EntityResolver
assigned, or null if none.
org.xml.sax.DTDHandler getDTDHandler()
DTDHandler
assigned, or null if none.
boolean getIgnoringElementContentWhitespace()
boolean getIgnoringBoundaryWhitespace()
boolean
- whether only whitespace content will be
ignored during build.boolean getExpandEntities()
Document build(org.xml.sax.InputSource in) throws JDOMException, java.io.IOException
in
- InputSource
to read from
Document
resultant Document object
JDOMException
- when errors occur in parsing
java.io.IOException
- when an I/O error prevents a document from being fully parsedDocument build(java.io.InputStream in) throws JDOMException, java.io.IOException
This builds a document from the supplied input stream.
in
- InputStream
to read from
Document
resultant Document object
JDOMException
- when errors occur in parsing
java.io.IOException
- when an I/O error prevents a document from being fully parsed.Document build(java.io.File file) throws JDOMException, java.io.IOException
This builds a document from the supplied filename.
file
- File
to read from
Document
resultant Document object
JDOMException
- when errors occur in parsing
java.io.IOException
- when an I/O error prevents a document from being fully parsedDocument build(java.net.URL url) throws JDOMException, java.io.IOException
This builds a document from the supplied URL.
url
- URL
to read from.
Document
- resultant Document object.
JDOMException
- when errors occur in parsing
java.io.IOException
- when an I/O error prevents a document from being fully parsed.Document build(java.io.InputStream in, java.lang.String systemId) throws JDOMException, java.io.IOException
This builds a document from the supplied input stream.
in
- InputStream
to read from.systemId
- base for resolving relative URIs
Document
resultant Document object
JDOMException
- when errors occur in parsing
java.io.IOException
- when an I/O error prevents a document from being fully parsedDocument build(java.io.Reader characterStream) throws JDOMException, java.io.IOException
This builds a document from the supplied Reader. It's the programmer's responsibility to make sure the reader matches the encoding of the file. It's often easier and safer to use an InputStream rather than a Reader, and to let the parser auto-detect the encoding from the XML declaration.
characterStream
- Reader
to read from
Document
resultant Document object
JDOMException
- when errors occur in parsing
java.io.IOException
- when an I/O error prevents a document from being fully parsedDocument build(java.io.Reader characterStream, java.lang.String systemId) throws JDOMException, java.io.IOException
This builds a document from the supplied Reader. It's the programmer's responsibility to make sure the reader matches the encoding of the file. It's often easier and safer to use an InputStream rather than a Reader, and to let the parser auto-detect the encoding from the XML declaration.
characterStream
- Reader
to read from.systemId
- base for resolving relative URIs
Document
resultant Document object
JDOMException
- when errors occur in parsing
java.io.IOException
- when an I/O error prevents a document from being fully parsedDocument build(java.lang.String systemId) throws JDOMException, java.io.IOException
This builds a document from the supplied URI.
systemId
- URI for the input
Document
resultant Document object
JDOMException
- when errors occur in parsing
java.io.IOException
- when an I/O error prevents a document from being fully parsed
|
JDOM 2.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |