|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectewe.data.DataObject
ewe.data.LiveObject
ewe.data.LiveTreeNode
ewe.zip.ZipEntry
This class represents a member of a zip archive. ZipFile and ZipInputStream will give you instances of this class as information about the members in an archive. On the other hand ZipOutputStream needs an instance of this class to create a new member.
| Field Summary | |
static int |
DEFLATED
Compression method. |
SubString |
myFileName
|
static int |
STORED
Compression method. |
| Fields inherited from class ewe.data.LiveTreeNode |
children, parent |
| Constructor Summary | |
ZipEntry(String name)
Creates a zip entry with the given name. |
|
ZipEntry(ZipEntry e)
Creates a copy of the given zip entry. |
|
| Method Summary | |
int |
compareTo(Object other)
Compare this object with another. |
String |
getComment()
Gets the comment. |
int |
getCompressedSize()
Gets the size of the compressed data. |
long |
getCrc()
Gets the crc of the uncompressed data. |
byte[] |
getExtra()
Gets the extra data. |
int |
getMethod()
Gets the compression method. |
String |
getName()
Returns the entry name. |
int |
getSize()
Gets the size of the uncompressed data. |
Time |
getTime(Time t)
Gets the time of last modification of the entry. |
boolean |
isDirectory()
Gets true, if the entry is a directory. |
void |
setComment(String comment)
Sets the entry comment. |
void |
setCompressedSize(int csize)
Sets the size of the compressed data. |
void |
setCrc(int crc)
Sets the crc of the uncompressed data. |
void |
setExtra(byte[] extra)
Sets the extra data. |
boolean |
setMethod(int method)
Sets the compression method. |
void |
setSize(int size)
Sets the size of the uncompressed data. |
void |
setTime(Time t)
Sets the time of last modification of the entry. |
String |
toString()
Gets the string representation of this ZipEntry. |
| Methods inherited from class ewe.data.LiveTreeNode |
addChild, addressOfChild, addressOfChild, addressOfChild, canExpand, collapse, expand, findNamedChild, getChild, getChildAt, getChildAt, getChildCount, getChildren, getParent, getParent, getSibling, indexOfChild, insertChild, isLeaf, isNamed, removeChild, setParent |
| Methods inherited from class ewe.data.LiveObject |
action, action, addMeToPanel, addObjectToPanel, addToPanel, decode, decoded, decodeFields, enableEditorScrolling, encode, encoded, encodeFields, fieldChanged, fieldChanged, fieldEvent, getEditor, getEditorScroller, getIcon, input, makeNewEditor, runAsApp, textDecode, textEncode |
| Methods inherited from class ewe.data.DataObject |
_getSetField, appendAllFields, copied, copyFrom, equals, getCopy, getDeclaredField, getDeclaredFieldValue, getDeclaredFieldValue, getFieldList, getFieldList, getMyFieldList, getNew |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode |
| Methods inherited from interface ewe.data.DataUnit |
copyFrom, getNew |
| Methods inherited from interface ewe.util.Copyable |
getCopy |
| Field Detail |
public static final int STORED
public static final int DEFLATED
public SubString myFileName
| Constructor Detail |
public ZipEntry(String name)
name - the name. May include directory components separated
by '/'.public ZipEntry(ZipEntry e)
e - the entry to copy.| Method Detail |
public String getName()
getName in interface LiveDatagetName in class LiveObjectpublic void setTime(Time t)
public Time getTime(Time t)
public void setSize(int size)
IllegalArgumentException - if size is not in 0..0xffffffffLpublic int getSize()
public void setCompressedSize(int csize)
IllegalArgumentException - if size is not in 0..0xffffffffLpublic int getCompressedSize()
public void setCrc(int crc)
IllegalArgumentException - if crc is not in 0..0xffffffffLpublic long getCrc()
public boolean setMethod(int method)
IllegalArgumentException - if method is not supported.ZipOutputStream.DEFLATED,
ZipOutputStream.STOREDpublic int getMethod()
public void setExtra(byte[] extra)
public byte[] getExtra()
public void setComment(String comment)
IllegalArgumentException - if comment is longer than 0xffff.public String getComment()
public boolean isDirectory()
public String toString()
toString in class Objectpublic int compareTo(Object other)
Comparable
compareTo in interface ComparablecompareTo in class DataObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||