| |
|
| java.lang.Object org.apache.xerces.util.EntityResolver2Wrapper
EntityResolver2Wrapper | public class EntityResolver2Wrapper implements ExternalSubsetResolver(Code) | | This class wraps a SAX entity resolver (EntityResolver2) in an XNI entity resolver.
author: Michael Glavassevich, IBM version: $Id: EntityResolver2Wrapper.java 447241 2006-09-18 05:12:57Z mrglavas $ |
fEntityResolver | protected EntityResolver2 fEntityResolver(Code) | | An instance of SAX2 Extensions 1.1's EntityResolver2.
|
EntityResolver2Wrapper | public EntityResolver2Wrapper()(Code) | | Default constructor.
|
EntityResolver2Wrapper | public EntityResolver2Wrapper(EntityResolver2 entityResolver)(Code) | | Creates a new instance wrapping the given SAX entity resolver.
Parameters: entityResolver - the SAX entity resolver to wrap |
getEntityResolver | public EntityResolver2 getEntityResolver()(Code) | | Returns the SAX entity resolver wrapped by this object.
the SAX entity resolver wrapped by this object |
getExternalSubset | public XMLInputSource getExternalSubset(XMLDTDDescription grammarDescription) throws XNIException, IOException(Code) | | Locates an external subset for documents which do not explicitly
provide one. If no external subset is provided, this method should
return null .
Parameters: grammarDescription - a description of the DTD throws: XNIException - Thrown on general error. throws: IOException - Thrown if resolved entity stream cannot beopened or some other i/o error occurs. |
resolveEntity | public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier) throws XNIException, IOException(Code) | | Resolves an external parsed entity. If the entity cannot be
resolved, this method should return null.
Parameters: resourceIdentifier - contains the physical co-ordinates of the resource to be resolved throws: XNIException - Thrown on general error. throws: IOException - Thrown if resolved entity stream cannot beopened or some other i/o error occurs. |
setEntityResolver | public void setEntityResolver(EntityResolver2 entityResolver)(Code) | | Sets the SAX entity resolver wrapped by this object.
Parameters: entityResolver - the SAX entity resolver to wrap |
|
|
|