public class FastSaxBuilder
extends org.jdom.input.SAXBuilder
SAXBuilder).
This sax builder uses no validation and discards all whitespace only text content
fields that have no siblings (see FastSaxHandler.setIgnoreBoundaryWhitespaceWithSiblings(boolean))| Constructor and Description |
|---|
FastSaxBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.jdom.Document |
build(File file) |
org.jdom.Document |
build(InputStream in,
long maximumExpectedSize)
This builds a document from the supplied input stream.
|
org.jdom.Document |
build(Reader in,
long maximumExpectedSize)
This builds a document from the supplied reader
|
protected org.jdom.input.SAXHandler |
createContentHandler() |
static String |
getTotalBuildTimes()
Get a text description of the total time spent parsing XML by all FastSAXBuilders.
|
build, build, build, build, build, build, build, configureContentHandler, configureParser, createParser, getDriverClass, getDTDHandler, getEntityResolver, getErrorHandler, getExpandEntities, getFactory, getIgnoringBoundaryWhitespace, getIgnoringElementContentWhitespace, getReuseParser, getValidation, getXMLFilter, setDTDHandler, setEntityResolver, setErrorHandler, setExpandEntities, setFactory, setFeature, setIgnoringBoundaryWhitespace, setIgnoringElementContentWhitespace, setProperty, setReuseParser, setValidation, setXMLFilterprotected org.jdom.input.SAXHandler createContentHandler()
createContentHandler in class org.jdom.input.SAXBuilderpublic org.jdom.Document build(InputStream in, long maximumExpectedSize) throws org.jdom.JDOMException, IOException
in - the input stream to build the xml frommaximumExpectedSize - the maximum size in bytes of the data that will be read from the input stream. This is used to allocate more appropriate buffer sizes and hence reduce memory usage and increase speed. This may be <=0 in which case some of the performance benefits of this class will be lost.org.jdom.JDOMExceptionIOExceptionpublic org.jdom.Document build(Reader in, long maximumExpectedSize) throws org.jdom.JDOMException, IOException
in - the reader to build the xml frommaximumExpectedSize - the maximum size in bytes of the data that will be read from the input stream. This is used to allocate more appropriate buffer sizes and hence reduce memory usage and increase speed. This may be <=0 in which case some of the performance benefits of this class will be lost.org.jdom.JDOMExceptionIOExceptionpublic org.jdom.Document build(File file) throws org.jdom.JDOMException, IOException
build in class org.jdom.input.SAXBuilderorg.jdom.JDOMExceptionIOExceptionpublic static String getTotalBuildTimes()