|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.parsers.DocumentBuilder
net.shibboleth.utilities.java.support.xml.BasicParserPool.DocumentBuilderProxy
protected class BasicParserPool.DocumentBuilderProxy
A proxy that prevents the manages document builders retrieved from the parser pool.
| Field Summary | |
|---|---|
private DocumentBuilder |
builder
Builder being proxied. |
private ParserPool |
owningPool
Pool that owns this parser. |
private boolean |
returned
Track accounting state of whether this builder has been returned to the owning pool. |
| Constructor Summary | |
|---|---|
BasicParserPool.DocumentBuilderProxy(DocumentBuilder target,
BasicParserPool owner)
Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final DocumentBuilder builder
private final ParserPool owningPool
private boolean returned
| Constructor Detail |
|---|
public BasicParserPool.DocumentBuilderProxy(DocumentBuilder target,
BasicParserPool owner)
target - document builder to proxyowner - the owning pool| Method Detail |
|---|
public DOMImplementation getDOMImplementation()
getDOMImplementation in class DocumentBuilderpublic Schema getSchema()
getSchema in class DocumentBuilderpublic boolean isNamespaceAware()
isNamespaceAware in class DocumentBuilderpublic boolean isValidating()
isValidating in class DocumentBuilderpublic boolean isXIncludeAware()
isXIncludeAware in class DocumentBuilderpublic Document newDocument()
newDocument in class DocumentBuilder
public Document parse(File f)
throws SAXException,
IOException
parse in class DocumentBuilderSAXException
IOException
public Document parse(InputSource is)
throws SAXException,
IOException
parse in class DocumentBuilderSAXException
IOException
public Document parse(InputStream is)
throws SAXException,
IOException
parse in class DocumentBuilderSAXException
IOException
public Document parse(InputStream is,
String systemId)
throws SAXException,
IOException
parse in class DocumentBuilderSAXException
IOException
public Document parse(String uri)
throws SAXException,
IOException
parse in class DocumentBuilderSAXException
IOExceptionpublic void reset()
reset in class DocumentBuilderpublic void setEntityResolver(EntityResolver er)
setEntityResolver in class DocumentBuilderpublic void setErrorHandler(ErrorHandler eh)
setErrorHandler in class DocumentBuilderprotected 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()
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||