com.infoteria.asteria.util.xml
Class DirectoryEntityResolver

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

public class DirectoryEntityResolver
extends java.lang.Object
implements org.xml.sax.EntityResolver, java.lang.Cloneable

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


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

Constructor Detail

DirectoryEntityResolver

public DirectoryEntityResolver(java.lang.String dtdpath)

DirectoryEntityResolver

public DirectoryEntityResolver(java.io.File dtdpath)
Method Detail

addDirectory

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

getDirectories

public java.util.List getDirectories()

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

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object