Autopsy
4.17.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 |
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 360 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 391 of file StringsTextExtractor.java.
References org.sleuthkit.autopsy.textextractors.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 487 of file StringsTextExtractor.java.
References org.sleuthkit.autopsy.coreutils.StringExtract.extract(), and org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.lastExtractResult.
Referenced by org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.read().
int org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.read | ( | ) | throws IOException |
Definition at line 401 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.read().
int org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.read | ( | byte[] | b, |
int | off, | ||
int | len | ||
) | throws IOException |
Definition at line 414 of file StringsTextExtractor.java.
References org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.convert(), org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.convertBuffOffset, and org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.read().
|
private |
Definition at line 375 of file StringsTextExtractor.java.
|
private |
Definition at line 363 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.InternationalStream().
|
private |
Definition at line 373 of file StringsTextExtractor.java.
|
private |
Definition at line 374 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.read().
|
staticprivate |
Definition at line 362 of file StringsTextExtractor.java.
|
private |
Definition at line 376 of file StringsTextExtractor.java.
|
private |
Definition at line 371 of file StringsTextExtractor.java.
|
private |
Definition at line 372 of file StringsTextExtractor.java.
|
private |
Definition at line 377 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.textextractors.StringsTextExtractor.InternationalStream.convert().
|
private |
true if there is nothing to do because neither extractUTF8 nor extractUTF16 was true in constructor
Definition at line 370 of file StringsTextExtractor.java.
|
private |
Definition at line 364 of file StringsTextExtractor.java.
|
private |
Definition at line 365 of file StringsTextExtractor.java.
Copyright © 2012-2021 Basis Technology. Generated on: Tue Jan 19 2021
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.