Constructor and Description |
---|
LocalFileCatalog(java.lang.String pathPrefix,
java.lang.String urlPrefix,
java.lang.String fname,
java.lang.String transformOnIngestFilename,
boolean useMemoryCache) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
net.sf.saxon.s9api.XdmNode |
getCatalogAsXdmNode(net.sf.saxon.s9api.Processor proc) |
org.jdom.Document |
getCatalogDocument() |
java.lang.String |
getCatalogKey() |
java.lang.String |
getFileName() |
java.lang.String |
getIngestTransformFilename() |
long |
getLastModified() |
java.lang.String |
getName() |
java.lang.String |
getPathPrefix() |
net.sf.saxon.s9api.XdmNode |
getRawCatalogAsXdmNode(net.sf.saxon.s9api.Processor proc) |
org.jdom.Document |
getRawCatalogDocument() |
java.lang.String |
getUrlPrefix() |
boolean |
needsRefresh() |
boolean |
usesMemoryCache() |
void |
writeCatalogXML(java.io.OutputStream os) |
void |
writeRawCatalogXML(java.io.OutputStream os) |
public LocalFileCatalog(java.lang.String pathPrefix, java.lang.String urlPrefix, java.lang.String fname, java.lang.String transformOnIngestFilename, boolean useMemoryCache) throws java.lang.Exception
java.lang.Exception
public boolean usesMemoryCache()
usesMemoryCache
in interface Catalog
public boolean needsRefresh()
needsRefresh
in interface Catalog
public void writeRawCatalogXML(java.io.OutputStream os) throws java.lang.Exception
writeRawCatalogXML
in interface Catalog
java.lang.Exception
public void writeCatalogXML(java.io.OutputStream os) throws java.lang.Exception
writeCatalogXML
in interface Catalog
java.lang.Exception
public org.jdom.Document getRawCatalogDocument() throws java.io.IOException, org.jdom.JDOMException
getRawCatalogDocument
in interface Catalog
java.io.IOException
- When things can't be read.org.jdom.JDOMException
- When things can't be parsed.public org.jdom.Document getCatalogDocument() throws java.io.IOException, org.jdom.JDOMException, net.sf.saxon.s9api.SaxonApiException
getCatalogDocument
in interface Catalog
java.io.IOException
- When things can't be read.org.jdom.JDOMException
- When things can't be parsed.net.sf.saxon.s9api.SaxonApiException
public net.sf.saxon.s9api.XdmNode getRawCatalogAsXdmNode(net.sf.saxon.s9api.Processor proc) throws java.io.IOException, net.sf.saxon.s9api.SaxonApiException
getRawCatalogAsXdmNode
in interface Catalog
proc
- XSLT processor that will be used to transform document.java.io.IOException
- When things can't be read.net.sf.saxon.s9api.SaxonApiException
- When things can't be parsed.public net.sf.saxon.s9api.XdmNode getCatalogAsXdmNode(net.sf.saxon.s9api.Processor proc) throws java.io.IOException, net.sf.saxon.s9api.SaxonApiException
getCatalogAsXdmNode
in interface Catalog
proc
- XSLT processor that will be used to transform document.java.io.IOException
- When things can't be read.net.sf.saxon.s9api.SaxonApiException
- When things can't be parsed.public java.lang.String getCatalogKey()
getCatalogKey
in interface Catalog
public java.lang.String getPathPrefix()
getPathPrefix
in interface Catalog
public java.lang.String getUrlPrefix()
getUrlPrefix
in interface Catalog
public java.lang.String getFileName()
getFileName
in interface Catalog
public long getLastModified()
getLastModified
in interface Catalog
public java.lang.String getIngestTransformFilename()
getIngestTransformFilename
in interface Catalog