|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.sevenzipjbinding.impl.OutItemFactory<T>
T
- the type of the corresponding archive item data class (out item), like IOutItem7z
or
IOutItemZip
. Use IOutItemAllFormats
interface to support all available archive formats.
Return type for of the all create methods of the factory.public class OutItemFactory<T extends IOutItemBase>
Factory for the OutItem
objects. The E
type parameter references one of the archive format
specific interfaces IOutItemXxx
or the archive format independent interface IOutItemAllFormats
to get access to subset of the OutItem
methods.
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:
Method Summary | |
---|---|
T |
createOutItem()
Create an instance of the E (IOutItemXxx interface).This method set default values for an archive item in create archive operations or a new archive item in update archive operations. |
T |
createOutItem(int updateOldArchiveItemIndex)
Create an instance of the E (IOutItemXxx interface).This method set default values for an existing archive item in update operations. |
T |
createOutItemAndCloneProperties(int updateOldArchiveItemIndex)
Create an instance of the E (IOutItemXxx interface).This method set default values for an existing archive item in update operations. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public T createOutItem()
E
(IOutItemXxx
interface).
public T createOutItem(int updateOldArchiveItemIndex) throws SevenZipException
E
(IOutItemXxx
interface).IOutCreateCallback.getItemInformation(int, OutItemFactory)
method are
suggested:
IOutItemBase.setUpdateIsNewData(Boolean)
to true
and providing new data stream
and data size.
IOutItemBase.setUpdateIsNewProperties(Boolean)
to true
and setting all
properties supported by the archive formatNote:
use createOutItemAndCloneProperties(int)
to change some of the properties
updateOldArchiveItemIndex
- index of the existing archive item in the existing (old) archive
SevenZipException
- 7-Zip or 7-Zip-JBinding error occur. Use SevenZipException.printStackTraceExtended()
to get
stack traces of this SevenZipException and of the all thrown 'cause by' exceptions.public T createOutItemAndCloneProperties(int updateOldArchiveItemIndex) throws SevenZipException
E
(IOutItemXxx
interface).
updateOldArchiveItemIndex
- index of the existing archive item in the existing (old) archive
SevenZipException
- 7-Zip or 7-Zip-JBinding error occur. Use SevenZipException.printStackTraceExtended()
to get
stack traces of this SevenZipException and of the all thrown 'cause by' exceptions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |