Autopsy  4.7.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable Class Reference

Classes

interface  LanguageInfo
 
enum  SCRIPT
 

Public Member Functions

SCRIPT getScript (int value)
 

Static Public Member Functions

static synchronized StringExtractUnicodeTable getInstance ()
 
static int getScriptValue (SCRIPT script)
 
static int getUnicodeTableSize ()
 
static boolean isGeneric (SCRIPT script)
 
static SCRIPT scriptForString (String scriptStringVal)
 

Private Member Functions

boolean init ()
 

Static Private Attributes

static StringExtractUnicodeTable instance = null
 
static final String PROPERTY_FILE = "StringExtract.properties"
 
static final SCRIPT[] SCRIPT_VALUES = SCRIPT.values()
 
static final char[] UNICODE_TABLE = new char[UNICODE_TABLE_SIZE]
 
static final int UNICODE_TABLE_SIZE = 65536
 

Detailed Description

Encapsulates the loaded unicode table and different scripts and provides utilitities for the table and script lookup. Manages loading of the unicode table. Used as a singleton to ensure minimal resource usage for the unicode table.

Definition at line 644 of file StringExtract.java.

Member Function Documentation

static synchronized StringExtractUnicodeTable org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.getInstance ( )
static
SCRIPT org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.getScript ( int  value)

Lookup and get script given byte value of a potential character

Parameters
value
Returns
the script type corresponding to the value

Definition at line 1203 of file StringExtract.java.

Referenced by org.sleuthkit.autopsy.coreutils.StringExtract.extractUTF16(), and org.sleuthkit.autopsy.coreutils.StringExtract.extractUTF8().

static int org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.getScriptValue ( SCRIPT  script)
static

Get the value of the script

Parameters
scriptthe script to get value of
Returns
the value corresponding to ordering in the SCRIPT enum

Definition at line 1231 of file StringExtract.java.

static int org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.getUnicodeTableSize ( )
static
boolean org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.init ( )
private

Initialization, loads unicode tables

Returns
true if initialized properly, false otherwise

Definition at line 1245 of file StringExtract.java.

Referenced by org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.getInstance().

static boolean org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.isGeneric ( SCRIPT  script)
static

Check if the script belongs to generic/common (chars are shared between different scripts)

Parameters
scriptto check for
Returns
true if the script is generic

Definition at line 1216 of file StringExtract.java.

Referenced by org.sleuthkit.autopsy.coreutils.StringExtract.extractUTF16(), and org.sleuthkit.autopsy.coreutils.StringExtract.extractUTF8().

static SCRIPT org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.scriptForString ( String  scriptStringVal)
static

Definition at line 1235 of file StringExtract.java.

Member Data Documentation

StringExtractUnicodeTable org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.instance = null
staticprivate
final String org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.PROPERTY_FILE = "StringExtract.properties"
staticprivate

Definition at line 1167 of file StringExtract.java.

final SCRIPT [] org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.SCRIPT_VALUES = SCRIPT.values()
staticprivate

Definition at line 1166 of file StringExtract.java.

final char [] org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.UNICODE_TABLE = new char[UNICODE_TABLE_SIZE]
staticprivate

unicode lookup table with 2 byte index and value of script

Definition at line 1175 of file StringExtract.java.

final int org.sleuthkit.autopsy.coreutils.StringExtract.StringExtractUnicodeTable.UNICODE_TABLE_SIZE = 65536
staticprivate

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

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.