public class DynamicCacheCatalogResolver extends java.lang.Object implements DTSCascadeSchemaURIResolver, org.xml.sax.EntityResolver
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
typicalDirectoryOfPackages
The Constant typicalDirectoryOfPackages.
|
Constructor and Description |
---|
DynamicCacheCatalogResolver(net.sf.saxon.lib.SchemaURIResolver nextResolver)
Instantiates a new dynamic cache catalog resolver.
|
DynamicCacheCatalogResolver(javax.xml.transform.URIResolver nextResolver)
Instantiates a new dynamic cache catalog resolver.
|
Modifier and Type | Method and Description |
---|---|
void |
endDTSDiscovery()
End DTS discovery.
|
javax.xml.transform.URIResolver |
getNextResolver()
Gets the next resolver.
|
net.sf.saxon.lib.SchemaURIResolver |
getNextSchemaResolver()
Gets the next schema resolver.
|
static void |
reset()
This method removes all cache content already loaded into the memory
cache and downloaded files so the next time it is used it starts from
a clean dynamic cache.
|
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
Resolve.
|
javax.xml.transform.Source[] |
resolve(java.lang.String targetNamespace,
java.lang.String baseURI,
java.lang.String[] locations)
Resolve.
|
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
Resolve entity.
|
void |
setConfiguration(net.sf.saxon.Configuration config)
Sets the configuration.
|
void |
setNextResolver(net.sf.saxon.lib.SchemaURIResolver newNextResolver)
Sets the next resolver.
|
void |
setNextResolver(javax.xml.transform.URIResolver newNextResolver)
Sets the next resolver.
|
void |
startDTSDiscovery()
Start DTS discovery.
|
static void |
storeSystemId(java.lang.String systemId,
java.io.File dir)
Store system id.
|
public static final java.lang.String typicalDirectoryOfPackages
public DynamicCacheCatalogResolver(javax.xml.transform.URIResolver nextResolver)
nextResolver
- the next resolverpublic DynamicCacheCatalogResolver(net.sf.saxon.lib.SchemaURIResolver nextResolver)
nextResolver
- the next resolverpublic javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base) throws javax.xml.transform.TransformerException
resolve
in interface javax.xml.transform.URIResolver
href
- the hrefbase
- the basejavax.xml.transform.TransformerException
- the transformer exceptionpublic org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
publicId
- the public idsystemId
- the system idorg.xml.sax.SAXException
- the SAX exceptionjava.io.IOException
- Signals that an I/O exception has occurred.public void setConfiguration(net.sf.saxon.Configuration config)
setConfiguration
in interface net.sf.saxon.lib.SchemaURIResolver
config
- the new configurationpublic javax.xml.transform.Source[] resolve(java.lang.String targetNamespace, java.lang.String baseURI, java.lang.String[] locations) throws net.sf.saxon.trans.XPathException
resolve
in interface net.sf.saxon.lib.SchemaURIResolver
targetNamespace
- the target namespacebaseURI
- the base URIlocations
- the locationsnet.sf.saxon.trans.XPathException
- the x path exceptionpublic javax.xml.transform.URIResolver getNextResolver()
getNextResolver
in interface DTSCascadeURIResolver
public void setNextResolver(javax.xml.transform.URIResolver newNextResolver)
setNextResolver
in interface DTSCascadeURIResolver
newNextResolver
- the new next resolverpublic void setNextResolver(net.sf.saxon.lib.SchemaURIResolver newNextResolver)
setNextResolver
in interface DTSCascadeSchemaURIResolver
newNextResolver
- the new next resolverpublic static void reset()
public net.sf.saxon.lib.SchemaURIResolver getNextSchemaResolver()
getNextSchemaResolver
in interface DTSCascadeSchemaURIResolver
public void startDTSDiscovery()
startDTSDiscovery
in interface DTSCascadeURIResolver
public void endDTSDiscovery()
endDTSDiscovery
in interface DTSCascadeURIResolver
public static void storeSystemId(java.lang.String systemId, java.io.File dir)
systemId
- the system iddir
- the dirCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa