org.milyn.xml
Class LocalDTDEntityResolver

java.lang.Object
  extended by org.milyn.xml.LocalEntityResolver
      extended by org.milyn.xml.LocalDTDEntityResolver
All Implemented Interfaces:
EntityResolver

public class LocalDTDEntityResolver
extends LocalEntityResolver

DTD resolver for local DTD's.

Author:
tfennelly

Constructor Summary
LocalDTDEntityResolver()
          Public default Constructor
LocalDTDEntityResolver(File localDTDFolder)
          Public default Constructor

This constructor allows specification of a local file system folder from which DTDs can be loaded.

 
Method Summary
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class org.milyn.xml.LocalEntityResolver
clearEntityCache, getDocType, setDocType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalDTDEntityResolver

public LocalDTDEntityResolver()
Public default Constructor


LocalDTDEntityResolver

public LocalDTDEntityResolver(File localDTDFolder)
Public default Constructor

This constructor allows specification of a local file system folder from which DTDs can be loaded.

Parameters:
localDTDFolder - Local DTD folder.
Method Detail

resolveEntity

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


Copyright © 2018. All rights reserved.