Package gov.nasa.pds.tools.label
Class CachedEntityResolver
java.lang.Object
gov.nasa.pds.tools.label.CachedEntityResolver
- All Implemented Interfaces:
EntityResolver
public class CachedEntityResolver extends Object implements EntityResolver
Class that caches entities into memory.
- Author:
- mcayanan
-
Constructor Summary
Constructors Constructor Description CachedEntityResolver()
Constructor. -
Method Summary
Modifier and Type Method Description void
addCachedEntities(Map<String,byte[]> entities)
InputSource
resolveEntity(String publicId, String systemId)
-
Constructor Details
-
CachedEntityResolver
public CachedEntityResolver()Constructor.
-
-
Method Details
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException- Specified by:
resolveEntity
in interfaceEntityResolver
- Throws:
SAXException
IOException
-
addCachedEntities
-