Autopsy  4.10.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.UnpackStream Class Reference

Inherits ISequentialOutStream.

Public Member Functions

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

Private Attributes

int bytesWritten
 
String localAbsPath
 
EncodedFileOutputStream output
 

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 816 of file SevenZipExtractor.java.

Member Function Documentation

void org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.close ( ) throws IOException
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 840 of file SevenZipExtractor.java.

Member Data Documentation

int org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.bytesWritten
private
String org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.localAbsPath
private
EncodedFileOutputStream org.sleuthkit.autopsy.modules.embeddedfileextractor.SevenZipExtractor.UnpackStream.output
private

Definition at line 818 of file SevenZipExtractor.java.


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

Copyright © 2012-2018 Basis Technology. Generated on: Fri Mar 22 2019
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.