Package org.biojava.utils.xml
Class ResourceEntityResolver
- java.lang.Object
-
- org.biojava.utils.xml.ResourceEntityResolver
-
- All Implemented Interfaces:
EntityResolver
public class ResourceEntityResolver extends Object implements EntityResolver
SAX EntityResolve which looks up system IDs as resources from a Java ClassLoader.- Since:
- 1.2
- Author:
- Thomas Down
-
-
Constructor Summary
Constructors Constructor Description ResourceEntityResolver(String path)
Construct a resolver which searches for resources in the specified path relative to the current classloader.ResourceEntityResolver(String[] path)
Construct a resolver which searches for resources in the specified list of directories relative to the current classloader.ResourceEntityResolver(String[] path, ClassLoader classLoader)
Construct a resolver which searches for resources in the specified list of directories relative to the supplied classloader.ResourceEntityResolver(String path, ClassLoader classLoader)
Construct a resolver which searches for resources in the specified path relative to the supplied classloader.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSource
resolveEntity(String publicId, String systemId)
-
-
-
Constructor Detail
-
ResourceEntityResolver
public ResourceEntityResolver(String path)
Construct a resolver which searches for resources in the specified path relative to the current classloader.
-
ResourceEntityResolver
public ResourceEntityResolver(String[] path)
Construct a resolver which searches for resources in the specified list of directories relative to the current classloader.
-
ResourceEntityResolver
public ResourceEntityResolver(String[] path, ClassLoader classLoader)
Construct a resolver which searches for resources in the specified list of directories relative to the supplied classloader.
-
ResourceEntityResolver
public ResourceEntityResolver(String path, ClassLoader classLoader)
Construct a resolver which searches for resources in the specified path relative to the supplied classloader.
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-
-