Autopsy  4.19.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 int MIN_CHARSETDETECT_MATCH_CONFIDENCE = 41
 
static final double MIN_DECODETECT_MATCH_CONFIDENCE = 0.4
 

Detailed Description

Utilities for working with text file encodings.

Definition at line 39 of file EncodingUtils.java.

Member Function Documentation

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

Member Data Documentation

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

Definition at line 49 of file EncodingUtils.java.

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

Definition at line 61 of file EncodingUtils.java.

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-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.