|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IOutItemBase
Base interface of the archive item data interfaces:
IOutItemXxx
, like IOutItem7z
IOutItemAllFormats
OutItem
. This base interface provides access to the getters and setters
methods, that are shared by all archive formats.IOutItemXxx
is to hide methods unrelated to the
corresponding archive format. For example, GZip format doesn't support the attributes
property and so
the IOutItemGZip
interface doesn't contain corresponding getters and setter. The Zip archive format on the
other hand does support the attributes
property defining the methods:
Method Summary | |
---|---|
ArchiveFormat |
getArchiveFormat()
Return current archive format |
java.lang.Long |
getDataSize()
Get property PropID.SIZE . |
int |
getIndex()
Return the index of the item being described in the new archive. |
IOutArchive<?> |
getOutArchive()
Return corresponding IOutArchive object. |
java.lang.Boolean |
getUpdateIsNewData()
Get whether the archive item data (content) has changed. |
java.lang.Boolean |
getUpdateIsNewProperties()
Get whether the archive item properties have changed. |
java.lang.Integer |
getUpdateOldArchiveItemIndex()
Get the index of the archive item in the archive being updated (old archive). |
void |
setDataSize(java.lang.Long size)
Set property PropID.SIZE . |
void |
setUpdateIsNewData(java.lang.Boolean updateIsNewData)
Set whether the archive item data (content) has changed. |
void |
setUpdateIsNewProperties(java.lang.Boolean updateIsNewProperties)
Set whether the archive item properties have changed. |
void |
setUpdateOldArchiveItemIndex(java.lang.Integer updateOldArchiveItemIndex)
Set the index of the archive item in the archive being updated (old archive). |
Method Detail |
---|
IOutArchive<?> getOutArchive()
ArchiveFormat getArchiveFormat()
int getIndex()
java.lang.Long getDataSize()
PropID.SIZE
.
PropID.SIZE
void setDataSize(java.lang.Long size)
PropID.SIZE
.
size
- see PropID.SIZE
PropID.SIZE
java.lang.Boolean getUpdateIsNewData()
isNewData
is true
,
isNewProperties
must also be true
true
- the archive item has new data (always true for new archives),false
- the archive item data from the old archive can be reused.void setUpdateIsNewData(java.lang.Boolean updateIsNewData)
isNewData
is true
,
isNewProperties
must also be true
.
updateIsNewData
- true
- the archive item has new data (always true for new archives),false
- the archive item data from the old archive can be reused.java.lang.Boolean getUpdateIsNewProperties()
isNewData
is true
,
isNewProperties
must also be true
true
- the archive item has new properties (always true for new archives).false
- the archive item properties from the old archive should be reused.void setUpdateIsNewProperties(java.lang.Boolean updateIsNewProperties)
isNewData
is true
,
isNewProperties
must also be true
updateIsNewProperties
- true
- the archive item has new properties (always true for new archives).false
- the archive item properties from the old archive should be reused.java.lang.Integer getUpdateOldArchiveItemIndex()
isNewData
or isNewProperties
set.
-1
if both isNewData
and isNewProperties
are true
.void setUpdateOldArchiveItemIndex(java.lang.Integer updateOldArchiveItemIndex)
updateOldArchiveItemIndex
- corresponding index of the archive item in the old archive (starting from 0).-1
if there is no corresponding archive item in the old archive or if doesn't matter (for
new archives).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |