Package org.apache.xalan.xsltc.dom
Class DocumentCache
- java.lang.Object
-
- org.apache.xalan.xsltc.dom.DocumentCache
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
DocumentCache.CachedDocument
-
Constructor Summary
Constructors Constructor Description DocumentCache(int size)
DocumentCache constructorDocumentCache(int size, XSLTCDTMManager dtmManager)
DocumentCache constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getStatistics(java.io.PrintWriter out)
Outputs the cache statisticsDOM
retrieveDocument(java.lang.String baseURI, java.lang.String href, Translet trs)
Returns a document either by finding it in the cache or downloading it and putting it in the cache.
-
-
-
Constructor Detail
-
DocumentCache
public DocumentCache(int size) throws org.xml.sax.SAXException
DocumentCache constructor- Throws:
org.xml.sax.SAXException
-
DocumentCache
public DocumentCache(int size, XSLTCDTMManager dtmManager) throws org.xml.sax.SAXException
DocumentCache constructor- Throws:
org.xml.sax.SAXException
-
-
Method Detail
-
retrieveDocument
public DOM retrieveDocument(java.lang.String baseURI, java.lang.String href, Translet trs)
Returns a document either by finding it in the cache or downloading it and putting it in the cache.- Specified by:
retrieveDocument
in interfaceDOMCache
- Parameters:
baseURI
- The base URI used by the document call.href
- The href argument passed to the document function.trs
- A reference to the translet requesting the document
-
getStatistics
public void getStatistics(java.io.PrintWriter out)
Outputs the cache statistics
-
-