public class FixedDtdEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver
EntityResolver
that rejects all entities except for a given DTD.
This DTD is resolved against a resource.Constructor and Description |
---|
FixedDtdEntityResolver(@NotNull java.lang.String systemId,
@NotNull java.lang.String resourceName)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull org.xml.sax.InputSource |
resolveEntity(@Nullable java.lang.String publicId,
@NotNull java.lang.String systemId) |
public FixedDtdEntityResolver(@NotNull @NotNull java.lang.String systemId, @NotNull @NotNull java.lang.String resourceName)
systemId
- the expected system IDresourceName
- the name of the resource to return for systemId
@NotNull public @NotNull org.xml.sax.InputSource resolveEntity(@Nullable @Nullable java.lang.String publicId, @NotNull @NotNull java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
resolveEntity
in interface org.xml.sax.EntityResolver
org.xml.sax.SAXException
java.io.IOException