public interface DTDAccelerator
The acceleration is obtained by replacing the DTD referenced in the <!DOCTYPE> of the document being loaded by a fake DTD containing only the entities declared in the actual DTD. The actual DTD and fake DTD are expected to be both cached by implementations of this interface.
LoadDocument
Modifier and Type | Method and Description |
---|---|
void |
clear(Console console)
Clear the cache.
|
InputSource |
get(URL dtdURL,
DTDSpec[] dtdSpec,
Console console)
Fetch the fake DTD from the cache.
|
InputSource get(URL dtdURL, DTDSpec[] dtdSpec, Console console)
dtdURL
- The URL of the DTD of interestdtdSpec
- Both an in and out argument:
console
- Information messages are reported using this console.
May be null
.null
if the DTD cannot be loaded or cannot be acceleratedvoid clear(Console console)
console
- Information messages are reported using this console.
May be null
.