Autopsy  4.9.1
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

 StandardIArchiveExtractCallback (ISevenZipInArchive inArchive, AbstractFile archiveFile, ProgressHandle progressHandle, Map< Integer, InArchiveItemDetails > archiveDetailsMap, String password, long freeDiskSpace)
 
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 ISevenZipInArchive 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 894 of file SevenZipExtractor.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.StandardIArchiveExtractCallback ( ISevenZipInArchive  inArchive,
AbstractFile  archiveFile,
ProgressHandle  progressHandle,
Map< Integer, InArchiveItemDetails archiveDetailsMap,
String  password,
long  freeDiskSpace 
)

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 1065 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 941 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 984 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 1053 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 1048 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
final AbstractFile org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.archiveFile
private
long org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.createTimeInSeconds
private
final ISevenZipInArchive org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.inArchive
private
int org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.inArchiveItemIndex
private
boolean org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.StandardIArchiveExtractCallback.isFolder
private

Definition at line 909 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
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-2018 Basis Technology. Generated on: Tue Dec 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.