|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.parsers.DocumentBuilder
org.opensaml.xml.parse.StaticBasicParserPool.DocumentBuilderProxy
protected class StaticBasicParserPool.DocumentBuilderProxy
A proxy that prevents the manages document builders retrieved from the parser pool.
Constructor Summary | |
---|---|
StaticBasicParserPool.DocumentBuilderProxy(javax.xml.parsers.DocumentBuilder target,
StaticBasicParserPool 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()
|
org.w3c.dom.DOMImplementation |
getDOMImplementation()
|
protected ParserPool |
getOwningPool()
Gets the pool that owns this parser. |
protected javax.xml.parsers.DocumentBuilder |
getProxiedBuilder()
Gets the proxied document builder. |
javax.xml.validation.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()
|
org.w3c.dom.Document |
newDocument()
|
org.w3c.dom.Document |
parse(java.io.File f)
|
org.w3c.dom.Document |
parse(org.xml.sax.InputSource is)
|
org.w3c.dom.Document |
parse(java.io.InputStream is)
|
org.w3c.dom.Document |
parse(java.io.InputStream is,
java.lang.String systemId)
|
org.w3c.dom.Document |
parse(java.lang.String uri)
|
void |
reset()
|
void |
setEntityResolver(org.xml.sax.EntityResolver er)
|
void |
setErrorHandler(org.xml.sax.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 |
Constructor Detail |
---|
public StaticBasicParserPool.DocumentBuilderProxy(javax.xml.parsers.DocumentBuilder target, StaticBasicParserPool owner)
target
- document builder to proxyowner
- the owning poolMethod Detail |
---|
public org.w3c.dom.DOMImplementation getDOMImplementation()
getDOMImplementation
in class javax.xml.parsers.DocumentBuilder
public javax.xml.validation.Schema getSchema()
getSchema
in class javax.xml.parsers.DocumentBuilder
public boolean isNamespaceAware()
isNamespaceAware
in class javax.xml.parsers.DocumentBuilder
public boolean isValidating()
isValidating
in class javax.xml.parsers.DocumentBuilder
public boolean isXIncludeAware()
isXIncludeAware
in class javax.xml.parsers.DocumentBuilder
public org.w3c.dom.Document newDocument()
newDocument
in class javax.xml.parsers.DocumentBuilder
public org.w3c.dom.Document parse(java.io.File f) throws org.xml.sax.SAXException, java.io.IOException
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parse(org.xml.sax.InputSource is) throws org.xml.sax.SAXException, java.io.IOException
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parse(java.io.InputStream is) throws org.xml.sax.SAXException, java.io.IOException
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parse(java.io.InputStream is, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public org.w3c.dom.Document parse(java.lang.String uri) throws org.xml.sax.SAXException, java.io.IOException
parse
in class javax.xml.parsers.DocumentBuilder
org.xml.sax.SAXException
java.io.IOException
public void reset()
reset
in class javax.xml.parsers.DocumentBuilder
public void setEntityResolver(org.xml.sax.EntityResolver er)
setEntityResolver
in class javax.xml.parsers.DocumentBuilder
public void setErrorHandler(org.xml.sax.ErrorHandler eh)
setErrorHandler
in class javax.xml.parsers.DocumentBuilder
protected ParserPool getOwningPool()
protected javax.xml.parsers.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 java.lang.IllegalStateException
java.lang.IllegalStateException
- thrown if the parser is in a state such that it can not be usedprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |