| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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 IOutItemBasepublic IOutArchive<?> getOutArchive()
IOutItemBase
getOutArchive in interface IOutItemBasepublic ArchiveFormat getArchiveFormat()
getArchiveFormat in interface IOutItemBasepublic java.lang.Long getDataSize()
PropID.SIZE.
getDataSize in interface IOutItemBasePropID.SIZEpublic void setDataSize(java.lang.Long size)
PropID.SIZE.
setDataSize in interface IOutItemBasesize - see PropID.SIZEPropID.SIZEpublic java.lang.Integer getPropertyAttributes()
PropID.ATTRIBUTES.
getPropertyAttributes in interface IOutItem7zgetPropertyAttributes in interface IOutItemZipPropID.ATTRIBUTESpublic void setPropertyAttributes(java.lang.Integer attributes)
PropID.ATTRIBUTES.
setPropertyAttributes in interface IOutItem7zsetPropertyAttributes in interface IOutItemZipattributes - see PropID.ATTRIBUTESPropID.ATTRIBUTESpublic java.lang.Integer getPropertyPosixAttributes()
PropID.POSIX_ATTRIB.
getPropertyPosixAttributes in interface IOutItemTarPropID.POSIX_ATTRIBpublic void setPropertyPosixAttributes(java.lang.Integer posixAttributes)
PropID.POSIX_ATTRIB.
setPropertyPosixAttributes in interface IOutItemTarposixAttributes - see PropID.POSIX_ATTRIBPropID.POSIX_ATTRIBpublic java.lang.String getPropertyPath()
PropID.PATH.
getPropertyPath in interface IOutItem7zgetPropertyPath in interface IOutItemGZipgetPropertyPath in interface IOutItemTargetPropertyPath in interface IOutItemZipPropID.PATHpublic void setPropertyPath(java.lang.String path)
PropID.PATH.
setPropertyPath in interface IOutItem7zsetPropertyPath in interface IOutItemGZipsetPropertyPath in interface IOutItemTarsetPropertyPath in interface IOutItemZippath - see PropID.PATHPropID.PATHpublic java.lang.Boolean getPropertyIsDir()
PropID.IS_FOLDER.
getPropertyIsDir in interface IOutItem7zgetPropertyIsDir in interface IOutItemTargetPropertyIsDir in interface IOutItemZipPropID.IS_FOLDERpublic void setPropertyIsDir(java.lang.Boolean dir)
PropID.IS_FOLDER.
setPropertyIsDir in interface IOutItem7zsetPropertyIsDir in interface IOutItemTarsetPropertyIsDir in interface IOutItemZipdir - see PropID.IS_FOLDERPropID.IS_FOLDERpublic java.util.Date getPropertyLastModificationTime()
PropID.LAST_MODIFICATION_TIME.
getPropertyLastModificationTime in interface IOutItem7zgetPropertyLastModificationTime in interface IOutItemGZipgetPropertyLastModificationTime in interface IOutItemTargetPropertyLastModificationTime in interface IOutItemZipPropID.LAST_MODIFICATION_TIMEpublic void setPropertyLastModificationTime(java.util.Date modificationTime)
PropID.LAST_MODIFICATION_TIME.
setPropertyLastModificationTime in interface IOutItem7zsetPropertyLastModificationTime in interface IOutItemGZipsetPropertyLastModificationTime in interface IOutItemTarsetPropertyLastModificationTime in interface IOutItemZipmodificationTime - see PropID.LAST_MODIFICATION_TIMEPropID.LAST_MODIFICATION_TIMEpublic java.util.Date getPropertyLastAccessTime()
PropID.LAST_ACCESS_TIME.
getPropertyLastAccessTime in interface IOutItemZipPropID.LAST_ACCESS_TIMEpublic void setPropertyLastAccessTime(java.util.Date lastAccessTime)
PropID.LAST_ACCESS_TIME.
setPropertyLastAccessTime in interface IOutItemZiplastAccessTime - see PropID.LAST_ACCESS_TIMEPropID.LAST_ACCESS_TIMEpublic java.util.Date getPropertyCreationTime()
PropID.CREATION_TIME.
getPropertyCreationTime in interface IOutItemZipPropID.CREATION_TIMEpublic void setPropertyCreationTime(java.util.Date creationTime)
PropID.CREATION_TIME.
setPropertyCreationTime in interface IOutItemZipcreationTime - see PropID.CREATION_TIMEPropID.CREATION_TIMEpublic java.lang.String getPropertyUser()
PropID.USER.
getPropertyUser in interface IOutItemTarPropID.USERpublic void setPropertyUser(java.lang.String user)
PropID.USER.
setPropertyUser in interface IOutItemTaruser - see PropID.USERPropID.USERpublic java.lang.String getPropertyGroup()
PropID.GROUP.
getPropertyGroup in interface IOutItemTarPropID.GROUPpublic void setPropertyGroup(java.lang.String group)
PropID.GROUP.
setPropertyGroup in interface IOutItemTargroup - see PropID.GROUPPropID.GROUPpublic java.lang.String getPropertySymLink()
PropID.SYM_LINK.
getPropertySymLink in interface IOutItemTarPropID.SYM_LINKpublic void setPropertySymLink(java.lang.String propertySymLink)
PropID.SYM_LINK.
setPropertySymLink in interface IOutItemTarpropertySymLink - see PropID.SYM_LINKPropID.GROUPpublic java.lang.String getPropertyHardLink()
PropID.HARD_LINK.
getPropertyHardLink in interface IOutItemTarPropID.SYM_LINKpublic void setPropertyHardLink(java.lang.String propertyHardLink)
PropID.HARD_LINK.
setPropertyHardLink in interface IOutItemTarpropertyHardLink - see PropID.HARD_LINKPropID.GROUPpublic java.lang.Boolean getPropertyIsAnti()
PropID.IS_ANTI.
getPropertyIsAnti in interface IOutItem7zPropID.IS_ANTIpublic void setPropertyIsAnti(java.lang.Boolean isAnti)
PropID.IS_ANTI.
setPropertyIsAnti in interface IOutItem7zisAnti - see PropID.IS_ANTI.PropID.IS_ANTIpublic java.lang.Boolean getUpdateIsNewData()
isNewData is true,
 isNewProperties must also be true
getUpdateIsNewData in interface IOutItemBasetrue - 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 IOutItemBaseupdateIsNewData - 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 IOutItemBasetrue - 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 IOutItemBaseupdateIsNewProperties - 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 IOutItemBaseupdateOldArchiveItemIndex - 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 | ||||||||