Autopsy  4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream Class Reference

Inherits InputStream.

Public Member Functions

int read () throws IOException
int read (byte[] b, int off, int len) throws IOException

Private Member Functions

 InternationalStream (AbstractFile content, List< SCRIPT > scripts, boolean extractUTF8, boolean extractUTF16)
void convert (int numBytes)

Private Attributes

int bytesInConvertBuff = 0
final AbstractFile content
byte[] convertBuff
int convertBuffOffset = 0
boolean fileEOF = false
final byte[] fileReadBuff = new byte[FILE_BUF_SIZE]
long fileReadOffset = 0L
StringExtract.StringExtractResult lastExtractResult
final boolean nothingToDo
final byte[] oneCharBuf = new byte[1]
final StringExtract stringExtractor

Static Private Attributes

static final int FILE_BUF_SIZE = 1024 * 1024
static final Logger logger = Logger.getLogger(InternationalStream.class.getName())

Detailed Description

Wrapper over StringExtract to provide streaming API Given AbstractFile object, extract international strings from the file and read output as a stream of UTF-8 strings as encoded bytes.

Definition at line 374 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.InternationalStream ( AbstractFile  content,
List< SCRIPT scripts,
boolean  extractUTF8,
boolean  extractUTF16 

Constructs new stream object that does conversion from file, to extracted strings, then to byte stream, for specified script, auto-detected encoding (UTF8, UTF16LE, UTF16BE), and specified output byte stream encoding

contentinput content to process and turn into a stream to convert into strings
scriptsa list of scripts to consider
extractUTF8whether to extract utf8 encoding
extractUTF16whether to extract utf16 encoding

Definition at line 404 of file

References org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.content, org.sleuthkit.autopsy.coreutils.StringExtract.setEnabledScripts(), org.sleuthkit.autopsy.coreutils.StringExtract.setEnableUTF16(), and org.sleuthkit.autopsy.coreutils.StringExtract.setEnableUTF8().

Member Function Documentation

void org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.convert ( int  numBytes)
int ( ) throws IOException
int ( byte[]  b,
int  off,
int  len 
) throws IOException

Member Data Documentation

int org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.bytesInConvertBuff = 0

Definition at line 388 of file

final AbstractFile org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.content
byte [] org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.convertBuff

Definition at line 386 of file

int org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.convertBuffOffset = 0
final int org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.FILE_BUF_SIZE = 1024 * 1024

Definition at line 377 of file

boolean org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.fileEOF = false

Definition at line 389 of file

final byte [] org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.fileReadBuff = new byte[FILE_BUF_SIZE]

Definition at line 384 of file

long org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.fileReadOffset = 0L

Definition at line 385 of file

StringExtract.StringExtractResult org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.lastExtractResult
final Logger org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.logger = Logger.getLogger(InternationalStream.class.getName())

Definition at line 376 of file

final boolean org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.nothingToDo

true if there is nothing to do because neither extractUTF8 nor extractUTF16 was true in constructor

Definition at line 383 of file

final byte [] org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.oneCharBuf = new byte[1]

Definition at line 379 of file

final StringExtract org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.stringExtractor

Definition at line 380 of file

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

Copyright © 2012-2016 Basis Technology. Generated on: Mon Apr 24 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.