Package org.apache.fop.afp.util
Class DTDEntityResolver
java.lang.Object
org.apache.fop.afp.util.DTDEntityResolver
- All Implemented Interfaces:
EntityResolver
An entity resolver for both DOM and SAX models of the SAX document.
The entity resolver only handles queries for the DTD. It will find any URI with a recognised public id and return an
The entity resolver only handles queries for the DTD. It will find any URI with a recognised public id and return an
InputSource
.
This work was authored by Joe Schmetzer (joe@exubero.com).
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Public ID for the AFP fonts 1.0 DTD.static final String
Resource location for the AFP fonts 1.0 DTD.static final String
Public ID for the AFP fonts 1.1 DTD.static final String
Resource location for the AFP fonts 1.1 DTD.static final String
Public ID for the AFP fonts 1.2 DTD.static final String
Resource location for the AFP fonts 1.2 DTD. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveEntity
(String publicId, String systemId) Resolve the combination of system and public identifiers.
-
Field Details
-
AFP_DTD_1_0_ID
Public ID for the AFP fonts 1.0 DTD.- See Also:
-
AFP_DTD_1_0_RESOURCE
Resource location for the AFP fonts 1.0 DTD.- See Also:
-
AFP_DTD_1_1_ID
Public ID for the AFP fonts 1.1 DTD.- See Also:
-
AFP_DTD_1_1_RESOURCE
Resource location for the AFP fonts 1.1 DTD.- See Also:
-
AFP_DTD_1_2_ID
Public ID for the AFP fonts 1.2 DTD.- See Also:
-
AFP_DTD_1_2_RESOURCE
Resource location for the AFP fonts 1.2 DTD.- See Also:
-
-
Constructor Details
-
DTDEntityResolver
public DTDEntityResolver()
-
-
Method Details
-
resolveEntity
Resolve the combination of system and public identifiers. If this resolver recognises the publicId, it will handle the resolution from the classpath, otherwise it will return null and allow the default resolution to occur.- Specified by:
resolveEntity
in interfaceEntityResolver
- Parameters:
publicId
- the public identifier to usesystemId
- the system identifier to resolve- Returns:
- An input source to the entity or null if not handled
- Throws:
IOException
- an error reading the stream
-