javax.xml.stream
Interface XMLResolver
public interface XMLResolver
Interface used to resolve XML external entities during parsing.
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:
java.io.InputStream
javax.xml.stream.XMLStreamReader
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 entitysystemID
- the system ID of the external entitybaseURI
- the absolute base URI of the referring entitynamespace
- the namespace of the external entity
- Throws:
XMLStreamException