org.gcube.portlets.user.homelibrary.util.zip.zipmodel
Interface ZipItem

All Known Implementing Classes:
AbstractZipItem, ZipFile, ZipFolder

public interface ZipItem

Author:
Federico De Faveri defaveri@isti.cnr.it

Method Summary
 String getComment()
          Return this item comment.
 byte[] getExtra()
          Return this item extra field.
 String getName()
          Return this item name.
 ZipFolder getParent()
          Return this item parent.
 String getPath()
          return this item path.
 ZipItemType getType()
          Return this item type.
 void setName(String name)
          Sets the item name.
 void setParent(ZipFolder parent)
          Set this item parent.
 

Method Detail

getParent

ZipFolder getParent()
Return this item parent.

Returns:
the parent, null if is the root.

setParent

void setParent(ZipFolder parent)
Set this item parent.

Parameters:
parent - the parent.

getName

String getName()
Return this item name.

Returns:
the item name.

setName

void setName(String name)
Sets the item name.

Parameters:
name - the item name.

getType

ZipItemType getType()
Return this item type.

Returns:
the item type.

getComment

String getComment()
Return this item comment.

Returns:
the item comment.

getExtra

byte[] getExtra()
Return this item extra field.

Returns:
the extra field.

getPath

String getPath()
return this item path.

Returns:
the item path.


Copyright © 2013. All Rights Reserved.