Package org.xmlresolver.adapters
Class SAXAdapter
- java.lang.Object
-
- org.xmlresolver.adapters.SAXAdapter
-
- All Implemented Interfaces:
org.xml.sax.EntityResolver
,org.xml.sax.ext.EntityResolver2
public class SAXAdapter extends java.lang.Object implements org.xml.sax.EntityResolver, org.xml.sax.ext.EntityResolver2
This class implements theEntityResolver
andEntityResolver2
APIs.It's a separate class in order to avoid a compile-time dependency on the SAX APIs for users of
XMLResolver
who don't use them.
-
-
Constructor Summary
Constructors Constructor Description SAXAdapter(XMLResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.xml.sax.InputSource
getExternalSubset(java.lang.String name, java.lang.String baseURI)
org.xml.sax.InputSource
resolveEntity(java.lang.String publicId, java.lang.String systemId)
org.xml.sax.InputSource
resolveEntity(java.lang.String name, java.lang.String publicId, java.lang.String baseURI, java.lang.String systemId)
-
-
-
Constructor Detail
-
SAXAdapter
public SAXAdapter(XMLResolver resolver)
-
-
Method Detail
-
getExternalSubset
public org.xml.sax.InputSource getExternalSubset(java.lang.String name, java.lang.String baseURI) throws org.xml.sax.SAXException, java.io.IOException
- Specified by:
getExternalSubset
in interfaceorg.xml.sax.ext.EntityResolver2
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String name, java.lang.String publicId, java.lang.String baseURI, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
- Specified by:
resolveEntity
in interfaceorg.xml.sax.ext.EntityResolver2
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
resolveEntity
public org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId) throws org.xml.sax.SAXException, java.io.IOException
- Specified by:
resolveEntity
in interfaceorg.xml.sax.EntityResolver
- Throws:
org.xml.sax.SAXException
java.io.IOException
-
-