|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xerces.util.EntityResolver2Wrapper
public class EntityResolver2Wrapper
This class wraps a SAX entity resolver (EntityResolver2) in an XNI entity resolver.
Constructor Summary | |
---|---|
EntityResolver2Wrapper()
Default constructor. |
|
EntityResolver2Wrapper(EntityResolver2 entityResolver)
Creates a new instance wrapping the given SAX entity resolver. |
Method Summary | |
---|---|
EntityResolver2 |
getEntityResolver()
Returns the SAX entity resolver wrapped by this object. |
XMLInputSource |
getExternalSubset(XMLDTDDescription grammarDescription)
Locates an external subset for documents which do not explicitly provide one. |
XMLInputSource |
resolveEntity(XMLResourceIdentifier resourceIdentifier)
Resolves an external parsed entity. |
void |
setEntityResolver(EntityResolver2 entityResolver)
Sets the SAX entity resolver wrapped by this object. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityResolver2Wrapper()
public EntityResolver2Wrapper(EntityResolver2 entityResolver)
Creates a new instance wrapping the given SAX entity resolver.
entityResolver
- the SAX entity resolver to wrapMethod Detail |
---|
public void setEntityResolver(EntityResolver2 entityResolver)
Sets the SAX entity resolver wrapped by this object.
entityResolver
- the SAX entity resolver to wrappublic EntityResolver2 getEntityResolver()
Returns the SAX entity resolver wrapped by this object.
public XMLInputSource getExternalSubset(XMLDTDDescription grammarDescription) throws XNIException, java.io.IOException
Locates an external subset for documents which do not explicitly
provide one. If no external subset is provided, this method should
return null
.
getExternalSubset
in interface ExternalSubsetResolver
grammarDescription
- a description of the DTD
XNIException
- Thrown on general error.
java.io.IOException
- Thrown if resolved entity stream cannot be
opened or some other i/o error occurs.public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier) throws XNIException, java.io.IOException
resolveEntity
in interface XMLEntityResolver
resourceIdentifier
- contains the physical co-ordinates of the resource to be resolved
XNIException
- Thrown on general error.
java.io.IOException
- Thrown if resolved entity stream cannot be
opened or some other i/o error occurs.XMLResourceIdentifier
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |