org.apache.maven.doxia.parser
Class AbstractXmlParser.CachedFileEntityResolver
java.lang.Object
org.apache.maven.doxia.parser.AbstractXmlParser.CachedFileEntityResolver
- All Implemented Interfaces:
- org.xml.sax.EntityResolver
- Enclosing class:
- AbstractXmlParser
public static class AbstractXmlParser.CachedFileEntityResolver
- extends java.lang.Object
- implements org.xml.sax.EntityResolver
Implementation of the callback mechanism EntityResolver
.
Using a mechanism of cached files in temp dir to improve performance when using the XMLReader
.
Field Summary |
protected static java.util.Map |
ENTITY_CACHE
Map with systemId as key and the content of systemId as byte[]. |
Method Summary |
org.xml.sax.InputSource |
resolveEntity(java.lang.String publicId,
java.lang.String systemId)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENTITY_CACHE
protected static final java.util.Map ENTITY_CACHE
- Map with systemId as key and the content of systemId as byte[].
AbstractXmlParser.CachedFileEntityResolver
public AbstractXmlParser.CachedFileEntityResolver()
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId,
java.lang.String systemId)
throws org.xml.sax.SAXException,
java.io.IOException
-
- Specified by:
resolveEntity
in interface org.xml.sax.EntityResolver
- Throws:
org.xml.sax.SAXException
java.io.IOException