This class wraps a SAX entity resolver (EntityResolver2) in an XNI entity resolver.
| Modifier and Type | Field and Description |
|---|---|
| protected EntityResolver2 | fEntityResolver
An instance of SAX2 Extensions 1.1's EntityResolver2. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | EntityResolver2Wrapper(EntityResolver2
the SAX entity resolver to wrap entityResolver)Creates a new instance wrapping the given SAX entity resolver. |
| Modifier and Type | Method and Description |
|---|---|
| private XMLInputSource | createXMLInputSource(InputSource source, String baseURI)
Creates an XMLInputSource from a SAX InputSource. |
| public EntityResolver2 | Returns: the SAX entity resolver wrapped by this objectReturns the SAX entity resolver wrapped by this object. |
| public XMLInputSource | getExternalSubset(XMLDTDDescription
a description of the DTD grammarDescription)Implements com. Locates an external subset for documents which do not explicitly provide one. |
| public XMLInputSource | resolveEntity(XMLResourceIdentifier
contains the physical co-ordinates of the resource to be resolved resourceIdentifier)Implements com. Resolves an external parsed entity. |
| public void | setEntityResolver(EntityResolver2
the SAX entity resolver to wrap entityResolver)Sets the SAX entity resolver wrapped by this object. |
| fEntityResolver | back to summary |
|---|---|
| protected EntityResolver2 fEntityResolver An instance of SAX2 Extensions 1.1's EntityResolver2. | |
| EntityResolver2Wrapper | back to summary |
|---|---|
| public EntityResolver2Wrapper() Default constructor. | |
| EntityResolver2Wrapper | back to summary |
|---|---|
| public EntityResolver2Wrapper(EntityResolver2 entityResolver) Creates a new instance wrapping the given SAX entity resolver.
| |
| createXMLInputSource | back to summary |
|---|---|
| private XMLInputSource createXMLInputSource(InputSource source, String baseURI) Creates an XMLInputSource from a SAX InputSource. | |
| getEntityResolver | back to summary |
|---|---|
| public EntityResolver2 getEntityResolver() Returns the SAX entity resolver wrapped by this object.
| |
| getExternalSubset | back to summary |
|---|---|
| public XMLInputSource getExternalSubset(XMLDTDDescription grammarDescription) throws XNIException, IOException Implements com. Locates an external subset for documents which do not explicitly
provide one. If no external subset is provided, this method should
return
| |
| resolveEntity | back to summary |
|---|---|
| public XMLInputSource resolveEntity(XMLResourceIdentifier resourceIdentifier) throws XNIException, IOException Implements com. Resolves an external parsed entity. If the entity cannot be resolved, this method should return null.
| |
| setEntityResolver | back to summary |
|---|---|
| public void setEntityResolver(EntityResolver2 entityResolver) Sets the SAX entity resolver wrapped by this object.
| |