|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParserPool
A pool of XML parsers.
Method Summary | |
---|---|
javax.xml.parsers.DocumentBuilder |
getBuilder()
Gets a builder from the pool. |
javax.xml.validation.Schema |
getSchema()
Gets the schema builders use to validate. |
org.w3c.dom.Document |
newDocument()
Convience method for creating a new document with a pooled builder. |
org.w3c.dom.Document |
parse(java.io.InputStream input)
Convience method for parsing an XML file using a pooled builder. |
org.w3c.dom.Document |
parse(java.io.Reader input)
Convience method for parsing an XML file using a pooled builder. |
void |
returnBuilder(javax.xml.parsers.DocumentBuilder builder)
Returns a builder to the pool. |
void |
setSchema(javax.xml.validation.Schema newSchema)
Sets the schema builders use to validate. |
Method Detail |
---|
javax.xml.parsers.DocumentBuilder getBuilder() throws XMLParserException
XMLParserException
- thrown if the document builder factory is misconfiguredvoid returnBuilder(javax.xml.parsers.DocumentBuilder builder)
builder
- the builder to returnorg.w3c.dom.Document newDocument() throws XMLParserException
XMLParserException
- thrown if there is a problem retrieving a builderorg.w3c.dom.Document parse(java.io.InputStream input) throws XMLParserException
input
- XML to parse
XMLParserException
- thrown if there is a problem retrieving a builder, the input stream can not be read,
or the XML was invalidorg.w3c.dom.Document parse(java.io.Reader input) throws XMLParserException
input
- XML to parse
XMLParserException
- thrown if there is a problem retrieving a builder, the input stream can not be read,
or the XML was invalidjavax.xml.validation.Schema getSchema()
void setSchema(javax.xml.validation.Schema newSchema)
newSchema
- the schema builders use to validate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |