com.infoteria.asteria.util.xml
Class DirectoryEntityResolver

java.lang.Object
  |
  +--com.infoteria.asteria.util.xml.DirectoryEntityResolver
All Implemented Interfaces:
Cloneable, EntityResolver

public class DirectoryEntityResolver
extends Object
implements EntityResolver, Cloneable

EntityResolverの簡易実装
指定のディレクトリにSystemIdに指定された存在するものとしてEntityを解決します。


Constructor Summary
DirectoryEntityResolver(File dtdpath)
           
DirectoryEntityResolver(String dtdpath)
           
 
Method Summary
 void addDirectory(File dir)
          ディレクトリを追加します。
 Object clone()
           
 InputSource resolveEntity(String publicId, String systemId)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectoryEntityResolver

public DirectoryEntityResolver(String dtdpath)

DirectoryEntityResolver

public DirectoryEntityResolver(File dtdpath)
Method Detail

addDirectory

public void addDirectory(File dir)
ディレクトリを追加します。

resolveEntity

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

clone

public Object clone()
Overrides:
clone in class Object