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 mechanism
EntityResolver
.
Using a mechanism of cached files in temp dir to improve performance when using the XMLReader
.-
Field Summary
FieldsModifier and TypeFieldDescriptionMap with systemId as key and the content of systemId as byte[].private static final org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveEntity
(String publicId, String systemId) private static byte[]
toByteArray
(URL url)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ENTITY_CACHE
Map with systemId as key and the content of systemId as byte[]. -
WELL_KNOWN_SYSTEM_IDS
-
-
Constructor Details
-
CachedFileEntityResolver
public CachedFileEntityResolver()
-
-
Method Details
-
resolveEntity
- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-
toByteArray
- Parameters:
url
- not null- Returns:
- return an array of byte
- Throws:
SAXException
- if any
-