Package net.sf.gridarta.utils.xml
Class FixedDtdEntityResolver
- java.lang.Object
-
- net.sf.gridarta.utils.xml.FixedDtdEntityResolver
-
- All Implemented Interfaces:
org.xml.sax.EntityResolver
public class FixedDtdEntityResolver extends java.lang.Object implements org.xml.sax.EntityResolverAnEntityResolverthat rejects all entities except for a given DTD. This DTD is resolved against a resource.
-
-
Constructor Summary
Constructors Constructor Description FixedDtdEntityResolver(@NotNull java.lang.String systemId, @NotNull java.lang.String resourceName)Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull org.xml.sax.InputSourceresolveEntity(@Nullable java.lang.String publicId, @NotNull java.lang.String systemId)
-
-
-
Method Detail
-
resolveEntity
@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- Specified by:
resolveEntityin interfaceorg.xml.sax.EntityResolver- Throws:
org.xml.sax.SAXExceptionjava.io.IOException
-
-