info.informatica.doc.xml.dtd
Class DefaultEntityResolver

java.lang.Object
  extended by info.informatica.doc.xml.dtd.DefaultEntityResolver
All Implemented Interfaces:
EntityResolver, EntityResolver2

public class DefaultEntityResolver
extends Object
implements EntityResolver2

Implements EntityResolver2.

Author:
Carlos Amengual (amengual at informatica.info)

Field Summary
protected  Map<String,String> dtdNameToFilename
           
protected  Map<String,String> dtdNameToURL
           
 
Constructor Summary
DefaultEntityResolver()
           
 
Method Summary
 InputSource getExternalSubset(String name, String baseURI)
           
 InputSource resolveEntity(DocumentTypeDeclaration dtDecl)
           
 InputSource resolveEntity(String documentTypeDeclaration)
           
 InputSource resolveEntity(String publicId, String systemId)
           
 InputSource resolveEntity(String name, String publicId, String baseURI, String systemId)
           
 void setClassLoader(ClassLoader loader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dtdNameToFilename

protected Map<String,String> dtdNameToFilename

dtdNameToURL

protected Map<String,String> dtdNameToURL
Constructor Detail

DefaultEntityResolver

public DefaultEntityResolver()
Method Detail

setClassLoader

public void setClassLoader(ClassLoader loader)

getExternalSubset

public InputSource getExternalSubset(String name,
                                     String baseURI)
                              throws SAXException,
                                     IOException
Specified by:
getExternalSubset in interface EntityResolver2
Throws:
SAXException
IOException

resolveEntity

public InputSource resolveEntity(String name,
                                 String publicId,
                                 String baseURI,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver2
Throws:
SAXException
IOException

resolveEntity

public InputSource resolveEntity(String publicId,
                                 String systemId)
                          throws SAXException,
                                 IOException
Specified by:
resolveEntity in interface EntityResolver
Throws:
SAXException
IOException

resolveEntity

public InputSource resolveEntity(DocumentTypeDeclaration dtDecl)
                          throws SAXException,
                                 IOException
Throws:
SAXException
IOException

resolveEntity

public InputSource resolveEntity(String documentTypeDeclaration)
                          throws SAXException,
                                 IOException
Throws:
SAXException
IOException


Copyright © 2011 informatica.info. All Rights Reserved.