public class EPPEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver
EPPEntityResolver
will attempt to load it from the classpath and
than store it in an internal cache. The cache
is a class attribute, so all instances of
EPPEntityResolver
reference the same
cache.Constructor and Description |
---|
EPPEntityResolver() |
Modifier and Type | Method and Description |
---|---|
org.xml.sax.InputSource |
resolveEntity(java.lang.String aPublicId,
java.lang.String aSystemId)
Implimentation of the
EntityResolver.resolveEntity
method, which is called before the parser loads an external
entity. |
public org.xml.sax.InputSource resolveEntity(java.lang.String aPublicId, java.lang.String aSystemId) throws org.xml.sax.SAXException, java.io.IOException
EntityResolver.resolveEntity
method, which is called before the parser loads an external
entity. This method will implement the loading of the
external entity from the classpath and cache entities in
an internal cache. Additionally, if a custom ClassLoader
was used to load EPPEntityResolver
, than the
custom ClassLoader
will be used after
ClassLoader.getSystemResourceAsStream
.resolveEntity
in interface org.xml.sax.EntityResolver
aPublicId
- IgnoredaSystemId
- Name of entity to loadInputSource
instance associated with aSystemId
org.xml.sax.SAXException
- Currently not thrown, but part of the interfacejava.io.IOException
- Error loading the entity.Copyright © VeriSign Inc. All Rights Reserved.