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

Static Public Member Functions

static Charset getEncoding (AbstractFile file) throws TskCoreException, IOException

Static Public Attributes

static final Charset UNKNOWN_CHARSET

Static Private Attributes

static final double MIN_DECODETECT_MATCH_CONFIDENCE = 0.4

Detailed Description

Utilities for working with text file encodings.

Definition at line 39 of file

Member Function Documentation

static Charset org.sleuthkit.autopsy.coreutils.textutils.EncodingUtils.getEncoding ( AbstractFile  file) throws TskCoreException, IOException

Member Data Documentation

final int org.sleuthkit.autopsy.coreutils.textutils.EncodingUtils.MIN_CHARSETDETECT_MATCH_CONFIDENCE = 41

Definition at line 49 of file

final double org.sleuthkit.autopsy.coreutils.textutils.EncodingUtils.MIN_DECODETECT_MATCH_CONFIDENCE = 0.4
final Charset org.sleuthkit.autopsy.coreutils.textutils.EncodingUtils.UNKNOWN_CHARSET
Initial value:
= new Charset("unknown", null) {
public boolean contains(Charset cs) {
return false;
public CharsetDecoder newDecoder() {
return null;
public CharsetEncoder newEncoder() {
return null;

Definition at line 61 of file

Referenced by org.sleuthkit.autopsy.coreutils.textutils.EncodingUtils.getEncoding(), org.sleuthkit.autopsy.modules.filetypeid.FileTypeDetector.getMIMEType(), and org.sleuthkit.autopsy.textextractors.TextFileExtractor.getReader().

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.