javax.xml.stream
Interface XMLResolver


public interface XMLResolver

Interface used to resolve XML external entities during parsing.


Method Summary
 Object resolveEntity(String publicID, String systemID, String baseURI, String namespace)
          Returns an input source from which the specified external entity can be read.
 

Method Detail

resolveEntity

Object resolveEntity(String publicID,
                     String systemID,
                     String baseURI,
                     String namespace)
                     throws XMLStreamException
Returns an input source from which the specified external entity can be read. The following return types are possible:
  1. java.io.InputStream
  2. javax.xml.stream.XMLStreamReader
  3. java.xml.stream.XMLEventReader
If null is returned, the processor will attempt to resolve the entity itself.

Parameters:
publicID - the public ID of the external entity
systemID - the system ID of the external entity
baseURI - the absolute base URI of the referring entity
namespace - the namespace of the external entity
Throws:
XMLStreamException