Autopsy  4.16.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback Class Reference

Inherits IArchiveExtractCallback, and ICryptoGetTextPassword.

Public Member Functions

String cryptoGetTextPassword () throws SevenZipException
 
ISequentialOutStream getStream (int inArchiveItemIndex, ExtractAskMode mode) throws SevenZipException
 
void prepareOperation (ExtractAskMode mode) throws SevenZipException
 
void setCompleted (long value) throws SevenZipException
 
void setOperationResult (ExtractOperationResult result) throws SevenZipException
 
void setTotal (long value) throws SevenZipException
 
boolean wasSuccessful ()
 

Private Attributes

long accessTimeInSeconds
 
final Map< Integer, InArchiveItemDetailsarchiveDetailsMap
 
final AbstractFile archiveFile
 
long createTimeInSeconds
 
final IInArchive inArchive
 
int inArchiveItemIndex
 
boolean isFolder
 
long modTimeInSeconds
 
final String password
 
final ProgressHandle progressHandle
 
UnpackStream unpackStream = null
 
boolean unpackSuccessful = true
 

Detailed Description

Call back class used by extract to expand archive files. This is the most efficient way to process according to the sevenzip binding documentation.

Definition at line 937 of file SevenZipExtractor.java.

Member Function Documentation

String org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.cryptoGetTextPassword ( ) throws SevenZipException

Called when opening encrypted archive files.

Returns
- Password supplied by user
Exceptions
SevenZipException

Definition at line 1108 of file SevenZipExtractor.java.

References org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.password.

ISequentialOutStream org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.getStream ( int  inArchiveItemIndex,
ExtractAskMode  mode 
) throws SevenZipException

Get stream is called by the internal framework as it traverses the archive structure. The ISequentialOutStream is where the archive file contents will be expanded and written to the local disk.

Skips folders, as there is nothing to extract.

Parameters
inArchiveItemIndexcurrent location of the
modeWill always be EXTRACT
Returns
Exceptions
SevenZipException

Definition at line 983 of file SevenZipExtractor.java.

References org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.inArchiveItemIndex, org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.setNewOutputStream(), and org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.unpackStream.

void org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.prepareOperation ( ExtractAskMode  mode) throws SevenZipException

Retrieves the file metadata from the archive before extraction. Called after getStream.

Parameters
modeWill always be EXTRACT.
Exceptions
SevenZipException

Definition at line 1026 of file SevenZipExtractor.java.

References org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.inArchiveItemIndex.

void org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.setCompleted ( long  value) throws SevenZipException

Definition at line 1096 of file SevenZipExtractor.java.

void org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.setOperationResult ( ExtractOperationResult  result) throws SevenZipException
void org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.setTotal ( long  value) throws SevenZipException

Definition at line 1091 of file SevenZipExtractor.java.

boolean org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.wasSuccessful ( )

Member Data Documentation

long org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.accessTimeInSeconds
private
final Map<Integer, InArchiveItemDetails> org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.archiveDetailsMap
private

Definition at line 943 of file SevenZipExtractor.java.

final AbstractFile org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.archiveFile
private

Definition at line 940 of file SevenZipExtractor.java.

long org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.createTimeInSeconds
private
final IInArchive org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.inArchive
private

Definition at line 941 of file SevenZipExtractor.java.

int org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.inArchiveItemIndex
private
boolean org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.isFolder
private

Definition at line 952 of file SevenZipExtractor.java.

long org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.modTimeInSeconds
private
final String org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.password
private
final ProgressHandle org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.progressHandle
private

Definition at line 944 of file SevenZipExtractor.java.

UnpackStream org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.unpackStream = null
private
boolean org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.unpackSuccessful = true
private

The documentation for this class was generated from the following file:

Copyright © 2012-2020 Basis Technology. Generated on: Tue Sep 22 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.