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

Static Public Member Functions

static ComponentOrientation getTextDirection (String text)
 
static boolean isValidSolrUTF8 (char ch)
 

Detailed Description

Text utilities

Definition at line 26 of file TextUtil.java.

Member Function Documentation

static ComponentOrientation org.sleuthkit.autopsy.coreutils.TextUtil.getTextDirection ( String  text)
static

Determine and return text orientation

Parameters
texttext to determine the text orientation in
Returns
detected text orientation that should be used for this type of text

Definition at line 36 of file TextUtil.java.

static boolean org.sleuthkit.autopsy.coreutils.TextUtil.isValidSolrUTF8 ( char  ch)
static

This method determines if a passed-in Java char (16 bits) is a valid UTF-8 printable character, returning true if so, false if not.

Note that this method can have ramifications for characters outside the Unicode Base Multilingual Plane (BMP), which require more than 16 bits. We are using Java characters (16 bits) to look at the data and this will not accurately identify any non-BMP character (larger than 16 bits) ending with 0xFFFF and 0xFFFE. In the interest of a fast solution, we have chosen to ignore the extended planes above Unicode BMP for the time being. The net result of this is some non-BMP characters may be interspersed with '^' characters in Autopsy.

Parameters
chthe character to test
Returns
Returns true if the character is valid UTF-8, false if not.

Definition at line 79 of file TextUtil.java.


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.