|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISimpleInArchiveItem
This java interface represents a archive item. There are no corresponding interface in original SevenZip api.
This interface is a part of simplified 7-Zip-JBinding interface.
ISimpleInArchive
Method Summary | |
---|---|
ExtractOperationResult |
extractSlow(ISequentialOutStream sequentialOutStream)
Extract one archive item. |
ExtractOperationResult |
extractSlow(ISequentialOutStream sequentialOutStream,
java.lang.String password)
Extract one archive item. |
java.lang.Integer |
getAttributes()
Return item attributes. Supported by all methods Zip
7Z
Arj
Cab
Rar
|
java.lang.String |
getComment()
Return comments for the item. |
java.lang.Integer |
getCRC()
Return CRC checksum of the item content. |
java.util.Date |
getCreationTime()
Return creation date and time of the item. Supported by all methods 7Z
Rar
|
java.lang.String |
getGroup()
Return parent group of the item. |
java.lang.String |
getHostOS()
Return host OS of item. |
int |
getItemIndex()
Returns the archive item index |
java.util.Date |
getLastAccessTime()
Return last access date and time of the item. Supported by all methods 7Z
Rar
|
java.util.Date |
getLastWriteTime()
Return last write date and time of the item. Supported by all methods, but BZ2
Chm
RPM
Split
Z
|
java.lang.String |
getMethod()
Return string title of item compress method. |
java.lang.Long |
getPackedSize()
Size of the packed item in archive. |
java.lang.String |
getPath()
Full path, name and extension of the file inside the archive. |
java.lang.Integer |
getPosition()
TODO: the purpose of position isn't clear |
java.lang.Long |
getSize()
Original size of the item. |
java.lang.String |
getUser()
Return parent user of the item. |
java.lang.Boolean |
isCommented()
Return true if item was commented, otherwise false . |
boolean |
isEncrypted()
Flag either a item encrypted or not. |
boolean |
isFolder()
Returns flag either a item represents a folder or not. |
Method Detail |
---|
java.lang.String getPath() throws SevenZipException
'dir/file.ext'
. Please note, that stream archive
formats such as gzip does not support this property, since it is always a single file (or stream) being
compressed.
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.Long getSize() throws SevenZipException
-1
is returned, if no size known for this item.
-1
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.Long getPackedSize() throws SevenZipException
0
will be returned. It means either unknown or
the item shares compressed data with other items and so take no additional space in archive.
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.boolean isFolder() throws SevenZipException
'dir/file'
without having an item for 'dir'
at all.
true
if item is a folder, otherwise false
. false
is returned, if
archive format doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.Integer getAttributes() throws SevenZipException
Zip
7Z
Arj
Cab
Rar
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.util.Date getCreationTime() throws SevenZipException
7Z
Rar
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.util.Date getLastAccessTime() throws SevenZipException
7Z
Rar
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.util.Date getLastWriteTime() throws SevenZipException
BZ2
Chm
RPM
Split
Z
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.boolean isEncrypted() throws SevenZipException
true
if item is encrypted, otherwise false
. false
is returned, if
archive format doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.Boolean isCommented() throws SevenZipException
true
if item was commented, otherwise false
.
true
if item was commented, otherwise false
.null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.Integer getCRC() throws SevenZipException
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.String getMethod() throws SevenZipException
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.Integer getPosition() throws SevenZipException
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.String getHostOS() throws SevenZipException
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.String getUser() throws SevenZipException
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.String getGroup() throws SevenZipException
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.java.lang.String getComment() throws SevenZipException
null
will be returned, if current archive type doesn't support this property.
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.ExtractOperationResult extractSlow(ISequentialOutStream sequentialOutStream) throws SevenZipException
sequentialOutStream
to output data.
sequentialOutStream
- output stream to use
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.ExtractOperationResult extractSlow(ISequentialOutStream sequentialOutStream, java.lang.String password) throws SevenZipException
sequentialOutStream
to output data.
sequentialOutStream
- output stream to usepassword
- password to use
SevenZipException
- 7-Zip or 7-Zip-JBinding intern error occur. Check exception message for more information.int getItemIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |