Milyn-Commons Version 0.6

org.milyn.xml
Class LocalEntityResolver

java.lang.Object
  extended byorg.milyn.xml.LocalEntityResolver
All Implemented Interfaces:
org.xml.sax.EntityResolver

public class LocalEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver

DTD resolver for local DTD's.

Author:
tfennelly

Constructor Summary
LocalEntityResolver()
          Public default Constructor
LocalEntityResolver(java.io.File localDTDFolder)
          Public default Constructor

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

 
Method Summary
static void clearEntityCache()
          Clear the entity cache.
 org.xml.sax.InputSource resolveEntity(java.lang.String publicId, java.lang.String systemId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalEntityResolver

public LocalEntityResolver()
Public default Constructor


LocalEntityResolver

public LocalEntityResolver(java.io.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 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 interface org.xml.sax.EntityResolver
Throws:
org.xml.sax.SAXException
java.io.IOException

clearEntityCache

public static void clearEntityCache()
Clear the entity cache.


Milyn-Commons Version 0.6