Java Standard Edition (SE)
XMLResolver
compact2, compact3
javax.xml.stream
Interface XMLResolver
-
public interface XMLResolver
This interface is used to resolve resources during an XML parse. If an application wishes to
perform custom entity resolution it must register an instance of this interface with
the XMLInputFactory using the setXMLResolver method.
- Since:
- 1.6
- Version:
- 1.0
-
-
Method Detail
-
resolveEntity
Object resolveEntity(String publicID,
String systemID,
String baseURI,
String namespace)
throws XMLStreamException
Retrieves a resource. This resource can be of the following three return types:
(1) java.io.InputStream (2) javax.xml.stream.XMLStreamReader (3) java.xml.stream.XMLEventReader.
If this method returns null the processor will attempt to resolve the entity using its
default mechanism.
- Parameters:
publicID
- The public identifier of the external entity being referenced, or null if none was supplied.
systemID
- The system identifier of the external entity being referenced.
baseURI
- Absolute base URI associated with systemId.
namespace
- The namespace of the entity to resolve.
- Returns:
- The resource requested or null.
- Throws:
XMLStreamException
- if there was a failure attempting to resolve the resource.
Content
License.
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2881 / 159533531. Delta: 0.00278 с