org.omegahat.Environment.Tools.ClassList
Class ArchiveClassList

java.lang.Object
  |
  +--java.util.Dictionary
        |
        +--java.util.Hashtable
              |
              +--org.omegahat.Environment.Utils.OrderedTable
                    |
                    +--org.omegahat.Environment.Tools.ClassList.ObjectList
                          |
                          +--org.omegahat.Environment.Tools.ClassList.ClassList
                                |
                                +--org.omegahat.Environment.Tools.ClassList.ArchiveClassList
All Implemented Interfaces:
Activable, AssignableSubset, java.lang.Cloneable, Database, java.io.Externalizable, java.util.Map, java.io.Serializable, ShallowCopyable, Subsettable
Direct Known Subclasses:
SubArchiveClassList

public class ArchiveClassList
extends ClassList
implements java.io.Serializable, java.io.Externalizable

Contains a listing of all the classes within a zip or jar file, and recursively within sub-directories of that archive file or URL, etc. This is a table whose entries are either

The name/key for each entry is the name of the entry within the archive file, i.e. file or directory name.

See Also:
Serialized Form

Inner classes inherited from class java.util.Map
java.util.Map.Entry
 
Field Summary
protected  java.util.zip.ZipFile zipFile
          An object that is computed from the file field inherited from {@lonk ClassList ClassList} just once and opened only when necessary.
 
Fields inherited from class org.omegahat.Environment.Tools.ClassList.ClassList
Debug, packageName, verbose
 
Fields inherited from class org.omegahat.Environment.Tools.ClassList.ObjectList
archive, class_filter, compute_time, dir_filter, doneSearch, file, fileSeparator, issuedWarning, recursive
 
Fields inherited from class org.omegahat.Environment.Utils.OrderedTable
listeners, name, orderedElements, orderedKeys, state
 
Fields inherited from interface org.omegahat.Environment.Databases.Database
ALL, ASSIGN, ATTACH, DETACH, NULL_ENTRY, READ, READ_WRITE, REMOVE
 
Fields inherited from interface org.omegahat.Environment.Databases.Activable
ACTIVE, INACTIVE
 
Constructor Summary
ArchiveClassList()
           
ArchiveClassList(java.io.File f)
           
 
Method Summary
 java.lang.Object add(java.lang.Object obj)
           
 java.lang.Object add(java.util.zip.ZipEntry e)
           
 void readExternal(java.io.ObjectInput in)
           
 void writeExternal(java.io.ObjectOutput out)
           
 java.util.zip.ZipFile zipFile()
           
 java.util.zip.ZipFile zipFile(java.io.File file)
           
 java.util.zip.ZipFile zipFile(java.util.zip.ZipFile f)
           
 
Methods inherited from class org.omegahat.Environment.Tools.ClassList.ClassList
add, find, findClass, loadClass, lookup, lookupZip, packageName, packageName, setPackageName, toClassName
 
Methods inherited from class org.omegahat.Environment.Tools.ClassList.ObjectList
add, addElement, archive, checkIsArchive, computeTime, computeTime, directoryFilter, directoryFilter, doneSearch, doneSearch, entries, file, file, file, fileSeparator, getDirectory, isArchive, issuedWarning, issuedWarning, lookupArchive, lookupDirectory, lookupDirectory, matchesClassName, newSubList, processDirectoryClasses, processSubDirectories, recursive, recursive, refresh, refresh, sourceIsNewer, warn, warnDirectory
 
Methods inherited from class org.omegahat.Environment.Utils.OrderedTable
addListListener, assign, assignSubset, attach, clear, copy, copy, detach, elementAt, exists, get, getName, getState, keys, listeners, listeners, notifyListeners, objects, ordered, orderedKeys, put, put, put, remove, remove, removeElement, removeElement, removeElementAt, removeElementAt, removeListListener, setElementAt, setName, setState, subset, subset, subset
 
Methods inherited from class java.util.Hashtable
clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, putAll, rehash, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omegahat.Environment.Databases.Database
size
 

Field Detail

zipFile

protected java.util.zip.ZipFile zipFile
An object that is computed from the file field inherited from {@lonk ClassList ClassList} just once and opened only when necessary.
Constructor Detail

ArchiveClassList

public ArchiveClassList()

ArchiveClassList

public ArchiveClassList(java.io.File f)
Method Detail

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable

add

public java.lang.Object add(java.util.zip.ZipEntry e)
Overrides:
add in class ObjectList

add

public java.lang.Object add(java.lang.Object obj)
Overrides:
add in class OrderedTable

zipFile

public java.util.zip.ZipFile zipFile()
                              throws java.util.zip.ZipException,
                                     java.io.IOException

zipFile

public java.util.zip.ZipFile zipFile(java.io.File file)
                              throws java.util.zip.ZipException,
                                     java.io.IOException

zipFile

public java.util.zip.ZipFile zipFile(java.util.zip.ZipFile f)
                              throws java.util.zip.ZipException,
                                     java.io.IOException