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

Inherits ISequentialOutStream.

Public Member Functions

void close () throws IOException
String getMIMEType ()
int getSize ()
void setNewOutputStream (String localAbsPath) throws IOException
int write (byte[] bytes) throws SevenZipException

Private Attributes

int bytesWritten
String localAbsPath
String mimeType = ""
EncodedFileOutputStream output

Static Private Attributes

static final Tika tika = new Tika()

Detailed Description

UnpackStream used by the SevenZipBindings to do archive extraction. A memory leak exists in the SevenZip library that will not let go of the streams until the entire archive extraction is complete. Instead of creating a new UnpackStream for every file in the archive, instead we just rebase our EncodedFileOutputStream pointer for every new file.

Definition at line 986 of file

Member Function Documentation

void org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.close ( ) throws IOException
String org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.getMIMEType ( )
int org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.getSize ( )
void org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.setNewOutputStream ( String  localAbsPath) throws IOException
int org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.write ( byte[]  bytes) throws SevenZipException

Definition at line 1013 of file

Member Data Documentation

int org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.bytesWritten
String org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.localAbsPath
String org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.mimeType = ""
EncodedFileOutputStream org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.output

Definition at line 988 of file

final Tika org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.tika = new Tika()

Definition at line 991 of file

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

Copyright © 2012-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.