|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.sevenzipjbinding.impl.OutItem
public final class OutItem
Implementation of the all IOutItemXxx
interfaces. Contains information about a single archive item
required for a create or update operation. Instances should be created by OutItemFactory
. See
IOutCreateCallback.getItemInformation(int, OutItemFactory)
for details.
The purpose of the archive format specific interfaces 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:
IOutCreateCallback.getItemInformation(int, OutItemFactory)
,
OutItemFactory
,
IOutItemBase
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.Integer |
getPropertyAttributes()
Get property PropID.ATTRIBUTES . |
java.util.Date |
getPropertyCreationTime()
Get property PropID.CREATION_TIME . |
java.lang.String |
getPropertyGroup()
Get property PropID.GROUP . |
java.lang.String |
getPropertyHardLink()
Get property PropID.HARD_LINK . |
java.lang.Boolean |
getPropertyIsAnti()
Get property PropID.IS_ANTI . |
java.lang.Boolean |
getPropertyIsDir()
Get property PropID.IS_FOLDER . |
java.util.Date |
getPropertyLastAccessTime()
Get property PropID.LAST_ACCESS_TIME . |
java.util.Date |
getPropertyLastModificationTime()
Get property PropID.LAST_MODIFICATION_TIME . |
java.lang.String |
getPropertyPath()
Get property PropID.PATH . |
java.lang.Integer |
getPropertyPosixAttributes()
Get property PropID.POSIX_ATTRIB . |
java.lang.String |
getPropertySymLink()
Get property PropID.SYM_LINK . |
java.lang.String |
getPropertyUser()
Get property PropID.USER . |
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 |
setPropertyAttributes(java.lang.Integer attributes)
Set property PropID.ATTRIBUTES . |
void |
setPropertyCreationTime(java.util.Date creationTime)
Set property PropID.CREATION_TIME . |
void |
setPropertyGroup(java.lang.String group)
Set property PropID.GROUP . |
void |
setPropertyHardLink(java.lang.String propertyHardLink)
Set property PropID.HARD_LINK . |
void |
setPropertyIsAnti(java.lang.Boolean isAnti)
Set property PropID.IS_ANTI . |
void |
setPropertyIsDir(java.lang.Boolean dir)
Set property PropID.IS_FOLDER . |
void |
setPropertyLastAccessTime(java.util.Date lastAccessTime)
Set property PropID.LAST_ACCESS_TIME . |
void |
setPropertyLastModificationTime(java.util.Date modificationTime)
Set property PropID.LAST_MODIFICATION_TIME . |
void |
setPropertyPath(java.lang.String path)
Set property PropID.PATH . |
void |
setPropertyPosixAttributes(java.lang.Integer posixAttributes)
Set property PropID.POSIX_ATTRIB . |
void |
setPropertySymLink(java.lang.String propertySymLink)
Set property PropID.SYM_LINK . |
void |
setPropertyUser(java.lang.String user)
Set property PropID.USER . |
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). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public int getIndex()
getIndex
in interface IOutItemBase
public IOutArchive<?> getOutArchive()
IOutItemBase
getOutArchive
in interface IOutItemBase
public ArchiveFormat getArchiveFormat()
getArchiveFormat
in interface IOutItemBase
public java.lang.Long getDataSize()
PropID.SIZE
.
getDataSize
in interface IOutItemBase
PropID.SIZE
public void setDataSize(java.lang.Long size)
PropID.SIZE
.
setDataSize
in interface IOutItemBase
size
- see PropID.SIZE
PropID.SIZE
public java.lang.Integer getPropertyAttributes()
PropID.ATTRIBUTES
.
getPropertyAttributes
in interface IOutItem7z
getPropertyAttributes
in interface IOutItemZip
PropID.ATTRIBUTES
public void setPropertyAttributes(java.lang.Integer attributes)
PropID.ATTRIBUTES
.
setPropertyAttributes
in interface IOutItem7z
setPropertyAttributes
in interface IOutItemZip
attributes
- see PropID.ATTRIBUTES
PropID.ATTRIBUTES
public java.lang.Integer getPropertyPosixAttributes()
PropID.POSIX_ATTRIB
.
getPropertyPosixAttributes
in interface IOutItemTar
PropID.POSIX_ATTRIB
public void setPropertyPosixAttributes(java.lang.Integer posixAttributes)
PropID.POSIX_ATTRIB
.
setPropertyPosixAttributes
in interface IOutItemTar
posixAttributes
- see PropID.POSIX_ATTRIB
PropID.POSIX_ATTRIB
public java.lang.String getPropertyPath()
PropID.PATH
.
getPropertyPath
in interface IOutItem7z
getPropertyPath
in interface IOutItemGZip
getPropertyPath
in interface IOutItemTar
getPropertyPath
in interface IOutItemZip
PropID.PATH
public void setPropertyPath(java.lang.String path)
PropID.PATH
.
setPropertyPath
in interface IOutItem7z
setPropertyPath
in interface IOutItemGZip
setPropertyPath
in interface IOutItemTar
setPropertyPath
in interface IOutItemZip
path
- see PropID.PATH
PropID.PATH
public java.lang.Boolean getPropertyIsDir()
PropID.IS_FOLDER
.
getPropertyIsDir
in interface IOutItem7z
getPropertyIsDir
in interface IOutItemTar
getPropertyIsDir
in interface IOutItemZip
PropID.IS_FOLDER
public void setPropertyIsDir(java.lang.Boolean dir)
PropID.IS_FOLDER
.
setPropertyIsDir
in interface IOutItem7z
setPropertyIsDir
in interface IOutItemTar
setPropertyIsDir
in interface IOutItemZip
dir
- see PropID.IS_FOLDER
PropID.IS_FOLDER
public java.util.Date getPropertyLastModificationTime()
PropID.LAST_MODIFICATION_TIME
.
getPropertyLastModificationTime
in interface IOutItem7z
getPropertyLastModificationTime
in interface IOutItemGZip
getPropertyLastModificationTime
in interface IOutItemTar
getPropertyLastModificationTime
in interface IOutItemZip
PropID.LAST_MODIFICATION_TIME
public void setPropertyLastModificationTime(java.util.Date modificationTime)
PropID.LAST_MODIFICATION_TIME
.
setPropertyLastModificationTime
in interface IOutItem7z
setPropertyLastModificationTime
in interface IOutItemGZip
setPropertyLastModificationTime
in interface IOutItemTar
setPropertyLastModificationTime
in interface IOutItemZip
modificationTime
- see PropID.LAST_MODIFICATION_TIME
PropID.LAST_MODIFICATION_TIME
public java.util.Date getPropertyLastAccessTime()
PropID.LAST_ACCESS_TIME
.
getPropertyLastAccessTime
in interface IOutItemZip
PropID.LAST_ACCESS_TIME
public void setPropertyLastAccessTime(java.util.Date lastAccessTime)
PropID.LAST_ACCESS_TIME
.
setPropertyLastAccessTime
in interface IOutItemZip
lastAccessTime
- see PropID.LAST_ACCESS_TIME
PropID.LAST_ACCESS_TIME
public java.util.Date getPropertyCreationTime()
PropID.CREATION_TIME
.
getPropertyCreationTime
in interface IOutItemZip
PropID.CREATION_TIME
public void setPropertyCreationTime(java.util.Date creationTime)
PropID.CREATION_TIME
.
setPropertyCreationTime
in interface IOutItemZip
creationTime
- see PropID.CREATION_TIME
PropID.CREATION_TIME
public java.lang.String getPropertyUser()
PropID.USER
.
getPropertyUser
in interface IOutItemTar
PropID.USER
public void setPropertyUser(java.lang.String user)
PropID.USER
.
setPropertyUser
in interface IOutItemTar
user
- see PropID.USER
PropID.USER
public java.lang.String getPropertyGroup()
PropID.GROUP
.
getPropertyGroup
in interface IOutItemTar
PropID.GROUP
public void setPropertyGroup(java.lang.String group)
PropID.GROUP
.
setPropertyGroup
in interface IOutItemTar
group
- see PropID.GROUP
PropID.GROUP
public java.lang.String getPropertySymLink()
PropID.SYM_LINK
.
getPropertySymLink
in interface IOutItemTar
PropID.SYM_LINK
public void setPropertySymLink(java.lang.String propertySymLink)
PropID.SYM_LINK
.
setPropertySymLink
in interface IOutItemTar
propertySymLink
- see PropID.SYM_LINK
PropID.GROUP
public java.lang.String getPropertyHardLink()
PropID.HARD_LINK
.
getPropertyHardLink
in interface IOutItemTar
PropID.SYM_LINK
public void setPropertyHardLink(java.lang.String propertyHardLink)
PropID.HARD_LINK
.
setPropertyHardLink
in interface IOutItemTar
propertyHardLink
- see PropID.HARD_LINK
PropID.GROUP
public java.lang.Boolean getPropertyIsAnti()
PropID.IS_ANTI
.
getPropertyIsAnti
in interface IOutItem7z
PropID.IS_ANTI
public void setPropertyIsAnti(java.lang.Boolean isAnti)
PropID.IS_ANTI
.
setPropertyIsAnti
in interface IOutItem7z
isAnti
- see PropID.IS_ANTI
.PropID.IS_ANTI
public java.lang.Boolean getUpdateIsNewData()
isNewData
is true
,
isNewProperties
must also be true
getUpdateIsNewData
in interface IOutItemBase
true
- the archive item has new data (always true for new archives),false
- the archive item data from the old archive can be reused.public void setUpdateIsNewData(java.lang.Boolean updateIsNewData)
isNewData
is true
,
isNewProperties
must also be true
.
setUpdateIsNewData
in interface IOutItemBase
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.public java.lang.Boolean getUpdateIsNewProperties()
isNewData
is true
,
isNewProperties
must also be true
getUpdateIsNewProperties
in interface IOutItemBase
true
- the archive item has new properties (always true for new archives).false
- the archive item properties from the old archive should be reused.public void setUpdateIsNewProperties(java.lang.Boolean updateIsNewProperties)
isNewData
is true
,
isNewProperties
must also be true
setUpdateIsNewProperties
in interface IOutItemBase
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.public java.lang.Integer getUpdateOldArchiveItemIndex()
isNewData
or isNewProperties
set.
getUpdateOldArchiveItemIndex
in interface IOutItemBase
-1
if both isNewData
and isNewProperties
are true
.public void setUpdateOldArchiveItemIndex(java.lang.Integer updateOldArchiveItemIndex)
setUpdateOldArchiveItemIndex
in interface IOutItemBase
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 |