public class ClasspathResolver extends Object implements EntityResolver, LSResourceResolver
classpath:
and be followed by either an
absolute or relative classpath. Relative classpaths are relative to this class.
This resolver will not attempt to resolve any other URIs.Modifier and Type | Class and Description |
---|---|
protected class |
ClasspathResolver.LSInputImpl
Implementation of DOM 3
LSInput . |
Modifier and Type | Field and Description |
---|---|
static String |
CLASSPATH_URI_SCHEME
UR scheme for classpath locations.
|
Constructor and Description |
---|
ClasspathResolver() |
Modifier and Type | Method and Description |
---|---|
InputSource |
resolveEntity(String publicId,
String systemId) |
protected InputStream |
resolver(String publicId,
String systemId)
Resolves an id against the classpath.
|
LSInput |
resolveResource(String type,
String namespaceURI,
String publicId,
String systemId,
String baseURI) |
public static final String CLASSPATH_URI_SCHEME
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
resolveEntity
in interface EntityResolver
SAXException
IOException
public LSInput resolveResource(String type, String namespaceURI, String publicId, String systemId, String baseURI)
resolveResource
in interface LSResourceResolver
protected InputStream resolver(String publicId, String systemId)
publicId
- resources public IDsystemId
- resources system IDCopyright © 2018 JBoss by Red Hat. All rights reserved.