protected class StaticBasicParserPool.DocumentBuilderProxy extends DocumentBuilder
Constructor and Description |
---|
StaticBasicParserPool.DocumentBuilderProxy(DocumentBuilder target,
StaticBasicParserPool owner)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkValidState()
Check whether the parser is in a valid and usable state, and if not, throw a runtime exception.
|
protected void |
finalize() |
DOMImplementation |
getDOMImplementation() |
protected ParserPool |
getOwningPool()
Gets the pool that owns this parser.
|
protected DocumentBuilder |
getProxiedBuilder()
Gets the proxied document builder.
|
Schema |
getSchema() |
boolean |
isNamespaceAware() |
protected boolean |
isReturned()
Check accounting state as to whether this parser has been returned to the
owning pool.
|
boolean |
isValidating() |
boolean |
isXIncludeAware() |
Document |
newDocument() |
Document |
parse(File f) |
Document |
parse(InputSource is) |
Document |
parse(InputStream is) |
Document |
parse(InputStream is,
String systemId) |
Document |
parse(String uri) |
void |
reset() |
void |
setEntityResolver(EntityResolver er) |
void |
setErrorHandler(ErrorHandler eh) |
protected void |
setReturned(boolean isReturned)
Set accounting state as to whether this parser has been returned to the
owning pool.
|
public StaticBasicParserPool.DocumentBuilderProxy(DocumentBuilder target, StaticBasicParserPool owner)
target
- document builder to proxyowner
- the owning poolpublic DOMImplementation getDOMImplementation()
getDOMImplementation
in class DocumentBuilder
public Schema getSchema()
getSchema
in class DocumentBuilder
public boolean isNamespaceAware()
isNamespaceAware
in class DocumentBuilder
public boolean isValidating()
isValidating
in class DocumentBuilder
public boolean isXIncludeAware()
isXIncludeAware
in class DocumentBuilder
public Document newDocument()
newDocument
in class DocumentBuilder
public Document parse(File f) throws SAXException, IOException
parse
in class DocumentBuilder
SAXException
IOException
public Document parse(InputSource is) throws SAXException, IOException
parse
in class DocumentBuilder
SAXException
IOException
public Document parse(InputStream is) throws SAXException, IOException
parse
in class DocumentBuilder
SAXException
IOException
public Document parse(InputStream is, String systemId) throws SAXException, IOException
parse
in class DocumentBuilder
SAXException
IOException
public Document parse(String uri) throws SAXException, IOException
parse
in class DocumentBuilder
SAXException
IOException
public void reset()
reset
in class DocumentBuilder
public void setEntityResolver(EntityResolver er)
setEntityResolver
in class DocumentBuilder
public void setErrorHandler(ErrorHandler eh)
setErrorHandler
in class DocumentBuilder
protected ParserPool getOwningPool()
protected DocumentBuilder getProxiedBuilder()
protected boolean isReturned()
protected void setReturned(boolean isReturned)
isReturned
- set true to indicate that parser has been returned to the owning poolprotected void checkValidState() throws IllegalStateException
IllegalStateException
- thrown if the parser is in a state such that it can not be usedCopyright © 2018 JBoss by Red Hat. All rights reserved.