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を解決します。
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DirectoryEntityResolver
public DirectoryEntityResolver(java.lang.String dtdpath)
DirectoryEntityResolver
public DirectoryEntityResolver(java.io.File dtdpath)
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