Package org.apache.maven.doxia.parser
Class AbstractXmlParser.CachedFileEntityResolver
- java.lang.Object
-
- org.apache.maven.doxia.parser.AbstractXmlParser.CachedFileEntityResolver
-
- All Implemented Interfaces:
EntityResolver
- Enclosing class:
- AbstractXmlParser
public static class AbstractXmlParser.CachedFileEntityResolver extends Object implements EntityResolver
Implementation of the callback mechanismEntityResolver. Using a mechanism of cached files in temp dir to improve performance when using theXMLReader.
-
-
Field Summary
Fields Modifier and Type Field Description protected static Map<String,byte[]>ENTITY_CACHEMap with systemId as key and the content of systemId as byte[].
-
Constructor Summary
Constructors Constructor Description CachedFileEntityResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputSourceresolveEntity(String publicId, String systemId)
-
-
-
Method Detail
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException
- Specified by:
resolveEntityin interfaceEntityResolver- Throws:
SAXExceptionIOException
-
-