public class ZipObject
extends java.lang.Object
Constructor and Description |
---|
ZipObject() |
ZipObject(java.lang.String name) |
ZipObject(java.lang.String name,
byte[] blob) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getBlob()
Returns the unpacked content.
|
java.lang.String |
getName()
Returns the name of the entry in the packed file.
|
boolean |
isDirectory()
Return
true when the object represents a directory entry. |
void |
setBlob(byte[] blob)
Sets the unpacked content.
|
void |
setDirectory(boolean directory)
Set this flag
true if the object represents a diretory entry. |
void |
setName(java.lang.String name)
Sets the name of the entry in the packed file.
|
public ZipObject(java.lang.String name)
public ZipObject(java.lang.String name, byte[] blob)
public ZipObject()
public byte[] getBlob()
public void setBlob(byte[] blob)
blob
- public boolean isDirectory()
true
when the object represents a directory entry.true
when the object represents a directory entry.public void setDirectory(boolean directory)
true
if the object represents a diretory entry.directory
- true
to represent a directory entry.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name of the entry in the packed file.