Package de.hsh.graja.util
Class Zip.ZipContentElement
- java.lang.Object
-
- de.hsh.graja.util.Zip.ZipContentElement
-
-
Constructor Summary
Constructors Constructor Description ZipContentElement(String path, byte[] bytes, long time)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
String
getPath()
long
getSize()
long
getTime()
boolean
isDirectory()
void
setBytes(byte[] bytes)
void
setPath(String path)
void
setTime(long time)
-
-
-
Constructor Detail
-
ZipContentElement
public ZipContentElement(String path, byte[] bytes, long time)
-
-
Method Detail
-
getPath
public String 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
public void setPath(String path)
- 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
-
-