Package africa.absa.inception.core.xml
Class DtdJarResolver
- java.lang.Object
-
- africa.absa.inception.core.xml.DtdJarResolver
-
- All Implemented Interfaces:
EntityResolver
public class DtdJarResolver extends Object implements EntityResolver
The DdtJarResolver allows the SAX parser to resolve DTD's stored in a JAR file.- Author:
- Marcus Portmann
-
-
Constructor Summary
Constructors Constructor Description DtdJarResolver(String systemId, String dtdPath)Constructs a new DTDJarResolver.DtdJarResolver(String publicId, String systemId, String dtdPath)Constructs a new DTDJarResolver.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPublicId()Returns the public ID for the DTD.StringgetSystemId()Returns the system ID for the DTD.InputSourceresolveEntity(String publicId, String systemId)Resolve the XML entity with the specified public ID and system ID.
-
-
-
Method Detail
-
getPublicId
public String getPublicId()
Returns the public ID for the DTD.- Returns:
- the public ID for the DTD
-
getSystemId
public String getSystemId()
Returns the system ID for the DTD.- Returns:
- the system ID for the DTD
-
resolveEntity
public InputSource resolveEntity(String publicId, String systemId)
Resolve the XML entity with the specified public ID and system ID. This method returns an InputSource that can be used to read the data for the DTD.- Specified by:
resolveEntityin interfaceEntityResolver- Parameters:
publicId- the public ID for the DTDsystemId- the system ID for the DTD- Returns:
- an InputSource that can be used to read the data for the DTD
-
-