Package at.gv.egovernment.moaspss.util
Class StreamEntityResolver
java.lang.Object
at.gv.egovernment.moaspss.util.StreamEntityResolver
- All Implemented Interfaces:
EntityResolver
An
EntityResolver that maps system IDs to
InputStreams.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveEntity(String publicId, String systemId) Resolve an entity by looking it up in the mapped entities.
-
Constructor Details
-
StreamEntityResolver
Create aStreamEntityResolver.- Parameters:
mappedEntities- A mapping from public or system IDs (Stringobjects) toInputStreams.
-
-
Method Details
-
resolveEntity
Resolve an entity by looking it up in the mapped entities. First, the public ID is looked up in the mapping, then the system ID.- Specified by:
resolveEntityin interfaceEntityResolver- Parameters:
publicId- The public ID of the entity.systemId- The system ID of the entity.- Returns:
- An
InputStreamcontaining the entity ornullif no entity could be found. - Throws:
SAXException- Signalling a parsing exception.IOException- Error reading the entity.
-