public class Resolver extends Object implements EntityResolver2, URIResolver, LSResourceResolver
EntityResolver
, URIResolver
, and LSResourceResolver
, based
on the Apache catalog resolver.Modifier and Type | Method and Description |
---|---|
InputSource |
getExternalSubset(String name,
String baseURI)
Implementation of
EntityResolver2.getExternalSubset(String, String) |
boolean |
isValidating()
Returns, whether the Resolver should create validating parsers.
|
boolean |
isXincludeAware()
Returns, whether the transformer should create xinclude aware XML parsers for reading XML documents.
|
URL |
resolve(String pResource)
Attempts to resolve the given URI.
|
Source |
resolve(String pHref,
String pBase)
Implementation of
URIResolver.resolve(String, String) . |
InputSource |
resolveEntity(String pPublicId,
String pSystemId)
Implementation of
EntityResolver.resolveEntity(String, String) . |
InputSource |
resolveEntity(String pName,
String pPublicId,
String pBaseURI,
String pSystemId)
Implementation of
EntityResolver2.resolveEntity(String, String, String, String) |
LSInput |
resolveResource(String pType,
String pNamespaceURI,
String pPublicId,
String pSystemId,
String pBaseURI)
Implementation of
LSResourceResolver.resolveResource(String, String, String, String, String) . |
void |
setValidating(boolean pValidating)
Sets, whether the Resolver should create validating parsers.
|
void |
setXincludeAware(boolean pXIncludeAware)
Sets, whether the transformer should create xinclude aware XML parsers for reading XML documents.
|
public InputSource resolveEntity(String pPublicId, String pSystemId) throws SAXException, IOException
EntityResolver.resolveEntity(String, String)
.resolveEntity
in interface EntityResolver
SAXException
IOException
public Source resolve(String pHref, String pBase) throws TransformerException
URIResolver.resolve(String, String)
.resolve
in interface URIResolver
TransformerException
public LSInput resolveResource(String pType, String pNamespaceURI, String pPublicId, String pSystemId, String pBaseURI)
LSResourceResolver.resolveResource(String, String, String, String, String)
.resolveResource
in interface LSResourceResolver
public void setValidating(boolean pValidating)
pValidating
- True, if created parsers should validate. Otherwise false.public boolean isValidating()
public URL resolve(String pResource)
pResource
- The URI to resolve.public InputSource getExternalSubset(String name, String baseURI) throws SAXException, IOException
EntityResolver2.getExternalSubset(String, String)
getExternalSubset
in interface EntityResolver2
SAXException
IOException
public InputSource resolveEntity(String pName, String pPublicId, String pBaseURI, String pSystemId) throws SAXException, IOException
EntityResolver2.resolveEntity(String, String, String, String)
resolveEntity
in interface EntityResolver2
SAXException
IOException
public boolean isXincludeAware()
public void setXincludeAware(boolean pXIncludeAware)
pXIncludeAware
- True, if transformers parser should be xinclud aware. Otherwise false.Copyright © 2006–2020 The Apache Software Foundation. All rights reserved.