java.lang.Object
java.util.zip.ZipEntry
- All Implemented Interfaces:
- Cloneable
- Direct Known Subclasses:
- JarEntry
- See Also:
- Top Examples, Source Code
public static final int CENATT
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENATX
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENCOM
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENCRC
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENDSK
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENEXT
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENFLG
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENHDR
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENHOW
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENLEN
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENNAM
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENOFF
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final long CENSIG
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENSIZ
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENTIM
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENVEM
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int CENVER
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public Object clone()
- See Also:
Cloneable
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[182]Look into the content of a zip file
By Anonymous on 2004/01/23 07:34:57 Rate
ZipFile zf = new ZipFile ( "d:/400.zip" ) ;
Enumeration entries = zf.entries ( ) ;
while ( entries.hasMoreElements ( ) ) {
ZipEntry theEntry = ( ZipEntry ) entries.nextElement ( ) ;
}
//clone
public static final int DEFLATED
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int ENDCOM
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int ENDHDR
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int ENDOFF
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final long ENDSIG
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int ENDSIZ
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int ENDSUB
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int ENDTOT
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int EXTCRC
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int EXTHDR
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int EXTLEN
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final long EXTSIG
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int EXTSIZ
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getComment()
- See Also:
setComment(String)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public long getCompressedSize()
- See Also:
setCompressedSize(long)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public long getCrc()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public byte[] getExtra()
- See Also:
setExtra(byte[])
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int getMethod()
- See Also:
setMethod(int)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String getName()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public long getSize()
- See Also:
setSize(long)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
[856]Unzip
By koschel { at } mpdigital { dot } de on 2005/07/11 09:16:41 Rate
ZipInputStream zipIn = new ZipInputStream ( myFileInputStream ) ;
ZipEntry entry = zipIn.getNextEntry ( ) ;
while ( entry != null ) {
long size = entry.getSize ( ) ;
if ( size == -1 )
size = 100000;
byte [ ] bytes = new byte [ ( int ) size ] ;
int count = 1;
int start = 0;
while ( count > 0 ) {
count = zipIn.read ( bytes,start,bytes.length - start ) ;
start += count;
}
String s = new String ( bytes, 0, start+1, "UTF8" ) ;
System.out.println ( s ) ;
}
public long getTime()
- See Also:
setTime(long)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public int hashCode()
- See Also:
Hashtable
, Object.equals(java.lang.Object)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public boolean isDirectory()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCCRC
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCEXT
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCFLG
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCHDR
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCHOW
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCLEN
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCNAM
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final long LOCSIG
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCSIZ
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCTIM
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int LOCVER
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setComment(String comment)
- See Also:
getComment()
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setCompressedSize(long csize)
- See Also:
getCompressedSize()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setCrc(long crc)
- See Also:
- IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setExtra(byte[] extra)
- See Also:
getExtra()
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setMethod(int method)
- See Also:
getMethod()
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setSize(long size)
- See Also:
getSize()
, IllegalArgumentException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public void setTime(long time)
- See Also:
getTime()
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public static final int STORED
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public String toString()
- See Also:
- Object
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public ZipEntry(String name)
- See Also:
- IllegalArgumentException, NullPointerException
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples
public ZipEntry(ZipEntry e)
- Geek's Notes:
- Description Add your codes or notes Search More Java Examples