Autopsy
4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits InputStream.
Public Member Functions | |
int | available () throws IOException |
int | read (byte[] b, int off, int len) throws IOException |
int | read () throws IOException |
long | skip (long n) throws IOException |
Private Member Functions | |
EnglishOnlyStream (Content content) | |
void | appendResetTemp () |
int | copyToReturn (byte[] b, int off, long len) |
Private Attributes | |
int | bytesInReadBuf = 0 |
final Content | content |
long | contentOffset = 0 |
final byte[] | curReadBuf = new byte[READ_BUF_SIZE] |
StringBuilder | curString = new StringBuilder() |
int | curStringLen = 0 |
boolean | inString = false |
boolean | isEOF = false |
final byte[] | oneCharBuf = new byte[1] |
int | readBufOffset = 0 |
boolean | stringAtBufBoundary = false |
boolean | stringAtTempBoundary = false |
StringBuilder | tempString = new StringBuilder() |
int | tempStringLen = 0 |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(EnglishOnlyStream.class.getName()) |
static final int | MIN_PRINTABLE_CHARS = 4 |
static final String | NLS = Character.toString((char) 10) |
static final int | READ_BUF_SIZE = 65536 |
Content input string stream reader/converter - given Content, extract strings from it and return encoded bytes via read()
Note: the utility supports extraction of only LATIN script and UTF8, UTF16LE, UTF16BE encodings and uses a brute force encoding detection - it's fast but could apply multiple encodings on the same string.
For other script/languages support and better encoding detection use AbstractFileStringIntStream streaming class, which wraps around StringExtract extractor.
Definition at line 151 of file StringsTextExtractor.java.
|
private |
Construct new string stream from Content. Do not attempt to fill entire read buffer if that would break a string
content | Content object from which to extract strings. |
Definition at line 182 of file StringsTextExtractor.java.
References org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.content.
|
private |
Definition at line 317 of file StringsTextExtractor.java.
References org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.tempStringLen.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.read().
int org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.available | ( | ) | throws IOException |
Definition at line 352 of file StringsTextExtractor.java.
|
private |
Definition at line 328 of file StringsTextExtractor.java.
References org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.curStringLen, and org.sleuthkit.autopsy.keywordsearch.Server.DEFAULT_INDEXED_TEXT_CHARSET.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.read().
int org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.read | ( | byte[] | b, |
int | off, | ||
int | len | ||
) | throws IOException |
Definition at line 187 of file StringsTextExtractor.java.
References org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.appendResetTemp(), org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.bytesInReadBuf, org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.copyToReturn(), org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.curStringLen, org.sleuthkit.autopsy.coreutils.StringExtract.isPrintableAscii(), and org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.tempStringLen.
int org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.read | ( | ) | throws IOException |
Definition at line 342 of file StringsTextExtractor.java.
long org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.skip | ( | long | n | ) | throws IOException |
Definition at line 358 of file StringsTextExtractor.java.
|
private |
Definition at line 164 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.read().
|
private |
Definition at line 159 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.EnglishOnlyStream().
|
private |
Definition at line 162 of file StringsTextExtractor.java.
|
private |
Definition at line 163 of file StringsTextExtractor.java.
|
private |
Definition at line 166 of file StringsTextExtractor.java.
|
private |
Definition at line 167 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.copyToReturn(), and org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.read().
|
private |
Definition at line 173 of file StringsTextExtractor.java.
|
private |
Definition at line 170 of file StringsTextExtractor.java.
|
staticprivate |
Definition at line 153 of file StringsTextExtractor.java.
|
staticprivate |
Definition at line 156 of file StringsTextExtractor.java.
|
staticprivate |
Definition at line 154 of file StringsTextExtractor.java.
|
private |
Definition at line 174 of file StringsTextExtractor.java.
|
staticprivate |
Definition at line 155 of file StringsTextExtractor.java.
|
private |
Definition at line 165 of file StringsTextExtractor.java.
|
private |
Definition at line 172 of file StringsTextExtractor.java.
|
private |
Definition at line 171 of file StringsTextExtractor.java.
|
private |
Definition at line 168 of file StringsTextExtractor.java.
|
private |
Definition at line 169 of file StringsTextExtractor.java.
Referenced by org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.appendResetTemp(), and org.sleuthkit.autopsy.keywordsearch.StringsTextExtractor.EnglishOnlyStream.read().
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.