Autopsy
4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits InputStream.
Public Member Functions | |
int | read () throws IOException |
int | read (byte[] b, int off, int len) throws IOException |
Private Member Functions | |
InternationalStream (Content content, List< SCRIPT > scripts, boolean extractUTF8, boolean extractUTF16) | |
void | convert (int numBytes) |
Private Attributes | |
int | bytesInConvertBuff = 0 |
final Content | 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()) |
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 371 of file StringsTextExtractor.java.
|
private |
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
content | input content to process and turn into a stream to convert into strings |
scripts | a list of scripts to consider |
extractUTF8 | whether to extract utf8 encoding |
extractUTF16 | whether to extract utf16 encoding |
Definition at line 403 of file StringsTextExtractor.java.
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().
|
private |
convert bytes in file buffer to string, and encode string in convertBuffer
numBytes | num bytes in the fileReadBuff |
Definition at line 500 of file StringsTextExtractor.java.
References org.sleuthkit.autopsy.keywordsearch.Server.DEFAULT_INDEXED_TEXT_CHARSET, org.sleuthkit.autopsy.coreutils.StringExtract.extract(), and org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.lastExtractResult.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.read().
int org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.read | ( | ) | throws IOException |
Definition at line 413 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.read().
int org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.read | ( | byte[] | b, |
int | off, | ||
int | len | ||
) | throws IOException |
Definition at line 426 of file StringsTextExtractor.java.
References org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.convert(), org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.convertBuffOffset, and org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.read().
|
private |
Definition at line 387 of file StringsTextExtractor.java.
|
private |
Definition at line 375 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.InternationalStream().
|
private |
Definition at line 385 of file StringsTextExtractor.java.
|
private |
Definition at line 386 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.read().
|
staticprivate |
Definition at line 374 of file StringsTextExtractor.java.
|
private |
Definition at line 388 of file StringsTextExtractor.java.
|
private |
Definition at line 383 of file StringsTextExtractor.java.
|
private |
Definition at line 384 of file StringsTextExtractor.java.
|
private |
Definition at line 389 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.InternationalStream.convert().
|
staticprivate |
Definition at line 373 of file StringsTextExtractor.java.
|
private |
true if there is nothing to do because neither extractUTF8 nor extractUTF16 was true in constructor
Definition at line 382 of file StringsTextExtractor.java.
|
private |
Definition at line 376 of file StringsTextExtractor.java.
|
private |
Definition at line 377 of file StringsTextExtractor.java.
Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.