org.omegahat.Environment.IO
Class ArchiveEntry

java.lang.Object
  |
  +--java.util.zip.ZipFile
        |
        +--org.omegahat.Environment.IO.ArchiveEntry
All Implemented Interfaces:
java.util.zip.ZipConstants

public class ArchiveEntry
extends java.util.zip.ZipFile

Represents an entry/record in a zip or jar file.


Field Summary
protected  java.util.zip.ZipEntry entry
          The entry within the archive assicuated with this object.
protected  java.lang.String entryName
          The name of the object associated with this entry in the archive.
 
Fields inherited from class java.util.zip.ZipFile
CENATT, CENATX, CENCOM, CENCRC, CENDSK, CENEXT, CENFLG, CENHDR, CENHOW, CENLEN, CENNAM, CENOFF, CENSIG, CENSIZ, CENTIM, CENVEM, CENVER, ENDCOM, ENDHDR, ENDOFF, ENDSIG, ENDSIZ, ENDSUB, ENDTOT, EXTCRC, EXTHDR, EXTLEN, EXTSIG, EXTSIZ, LOCCRC, LOCEXT, LOCFLG, LOCHDR, LOCHOW, LOCLEN, LOCNAM, LOCSIG, LOCSIZ, LOCTIM, LOCVER, OPEN_DELETE, OPEN_READ
 
Constructor Summary
ArchiveEntry(java.io.File f, java.lang.String entry)
          Identifies the specified entry within the container archive file.
 
Method Summary
 java.util.zip.ZipEntry entry()
          Retrieve the ZipEntry .
 java.util.zip.ZipEntry entry(boolean open)
           
 java.util.zip.ZipEntry entry(java.util.zip.ZipEntry zip)
           
 java.lang.String entryName()
           
 java.lang.String entryName(java.lang.String n)
           
 java.io.InputStream inputStream()
          Return the stream for the entry in the archive file identified by entry() so we can read the entry's contents.
 
Methods inherited from class java.util.zip.ZipFile
close, entries, finalize, getEntry, getInputStream, getName, size
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

entry

protected java.util.zip.ZipEntry entry
The entry within the archive assicuated with this object.

entryName

protected java.lang.String entryName
The name of the object associated with this entry in the archive.
Constructor Detail

ArchiveEntry

public ArchiveEntry(java.io.File f,
                    java.lang.String entry)
             throws java.io.IOException
Identifies the specified entry within the container archive file.
Parameters:
f - the zip or jar file
entry - the entry within the archive file.
Method Detail

inputStream

public java.io.InputStream inputStream()
                                throws java.io.IOException
Return the stream for the entry in the archive file identified by entry() so we can read the entry's contents.

entry

public java.util.zip.ZipEntry entry()
Retrieve the ZipEntry .

entry

public java.util.zip.ZipEntry entry(boolean open)

entry

public java.util.zip.ZipEntry entry(java.util.zip.ZipEntry zip)

entryName

public java.lang.String entryName()

entryName

public java.lang.String entryName(java.lang.String n)