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 mechanism EntityResolver
.
Using a mechanism of cached files in temp dir to improve performance when using the XMLReader
.
Field Summary |
protected static Map<String,byte[]> |
ENTITY_CACHE
Map with systemId as key and the content of systemId as byte[]. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ENTITY_CACHE
protected static final Map<String,byte[]> ENTITY_CACHE
- Map with systemId as key and the content of systemId as byte[].
AbstractXmlParser.CachedFileEntityResolver
public AbstractXmlParser.CachedFileEntityResolver()
resolveEntity
public InputSource resolveEntity(String publicId,
String systemId)
throws SAXException,
IOException
-
- Specified by:
resolveEntity
in interface EntityResolver
- Throws:
SAXException
IOException
Copyright © 2005-2012 The Apache Software Foundation. All Rights Reserved.