Package de.hsh.graja.util
Class Zip.ZipContentElement
java.lang.Object
de.hsh.graja.util.Zip.ZipContentElement
- Enclosing class:
- Zip
An in-memory representation of a zip file's entry.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ZipContentElement
-
-
Method Details
-
getPath
- Returns:
- the path, where directories end with a trailing '/'. All dir separators are forward slashes.
-
getBytes
public byte[] getBytes()- Returns:
- the content as a byte array
-
getSize
public long getSize()- Returns:
- the size in bytes
-
getTime
public long getTime()- Returns:
- The last modification time of the entry in milliseconds since the epoch
-
isDirectory
public boolean isDirectory()- Returns:
- true, if the path ends with '/'
-
setPath
- Parameters:
path
- the path, where directories end with a trailing '/'. Backslashes are automatically converted to forward slashes.
-
setBytes
public void setBytes(byte[] bytes) - Parameters:
bytes
- the content as a byte array
-
setTime
public void setTime(long time) - Parameters:
time
- The last modification time of the entry in milliseconds since the epoch
-