public final class ParserEntityResolver extends Object implements EntityResolver
| Modifier and Type | Method and Description |
|---|---|
static ParserEntityResolver |
getDefaultResolver()
Returns a default resolver, which is initialized to redirect the parser to a local copy of the JFreeReport DTDs.
|
String |
getDeprecatedDTDMessage(String publicID)
Returns deprecation message for the given public ID.
|
URL |
getDTDLocation(String publicID)
Sets the location of the DTD.
|
InputSource |
resolveEntity(String publicId,
String systemId)
Allow the application to resolve external entities.
|
void |
setDeprecatedDTDMessage(String publicID,
String message)
Defines that the given public ID should be deprecated and provides a log-message along with the deprecation.
|
boolean |
setDTDLocation(String publicID,
String systemId,
URL location)
Defines a DTD used to validate the report definition.
|
boolean |
setDTDLocation(String publicID,
URL location)
Defines a DTD used to validate the report definition.
|
public boolean setDTDLocation(String publicID, URL location)
publicID - the public ID.location - the URL.public boolean setDTDLocation(String publicID, String systemId, URL location)
systemId - the system ID for the DTD.publicID - the public ID.location - the URL.public URL getDTDLocation(String publicID)
publicID - the id.public InputSource resolveEntity(String publicId, String systemId)
resolveEntity in interface EntityResolverpublicId - the public ID.systemId - the system ID.public static ParserEntityResolver getDefaultResolver()
public void setDeprecatedDTDMessage(String publicID, String message)
publicID - the public id that should be considered deprecated.message - the message to present to the user to warn them about their use of deprecated DTDs.