Package com.globalmentor.xml
Class URIInputStreamableXMLEntityResolver
- java.lang.Object
-
- com.globalmentor.xml.DefaultEntityResolver
-
- com.globalmentor.xml.URIInputStreamableXMLEntityResolver
-
- All Implemented Interfaces:
org.xml.sax.EntityResolver
@Deprecated public class URIInputStreamableXMLEntityResolver extends DefaultEntityResolver
Deprecated.An entity resolver that retrieves XML entities from aURIInputStreamable
. This implementation looks up and returns special predefined entities locally instead of actually retrieving them from theURIInputStreamable
. This implementation searches for resource files within this package that have the same name as the public ID, with illegal characters replaced with "^XX", where "XX" is a hex code. For example, the entity public ID "-//W3C//DTD XHTML 1.1//EN" would be stored in this package under the filename "-^2F^2FW3C^2F^2FDTD XHTML 1.1^2F^2FEN". This is a singleton class that cannot be publicly instantiated.- Author:
- Garret Wilson
-
-
Constructor Summary
Constructors Constructor Description URIInputStreamableXMLEntityResolver(com.globalmentor.io.URIInputStreamable source)
Deprecated.Source constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected com.globalmentor.io.URIInputStreamable
getSource()
Deprecated.org.xml.sax.InputSource
resolveEntity(java.lang.String publicID, java.lang.String systemID)
Deprecated.Resolves the given entity based upon its public and system IDs.-
Methods inherited from class com.globalmentor.xml.DefaultEntityResolver
getInstance
-
-
-
-
Method Detail
-
getSource
protected com.globalmentor.io.URIInputStreamable getSource()
Deprecated.- Returns:
- The source of the data.
-
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicID, java.lang.String systemID) throws org.xml.sax.SAXException, java.io.IOException
Deprecated.Resolves the given entity based upon its public and system IDs.This method delegates to the source
URIInputStreamable
if the parent version cannot resolve the entity.- Specified by:
resolveEntity
in interfaceorg.xml.sax.EntityResolver
- Overrides:
resolveEntity
in classDefaultEntityResolver
- Parameters:
publicID
- The entity putlic ID, ornull
if none was given.systemID
- The entity system ID.- Returns:
- An input source describing the entity, or
null
to request that the parser open a regular URI connection to the system identifier. - Throws:
org.xml.sax.SAXException
java.io.IOException
-
-