public class FileEncoding extends Object
Tries to guess the encoding of the byte sequence. Orignial code taken from https://github.com/file/file/blob/master/src/encoding.c
Type Params | Return Type | Name and description |
---|---|---|
|
public String |
getCode() |
|
public String |
getCodeMime() |
|
public String |
getType() |
|
public boolean |
guessFileEncoding(byte[] buf) Try to determine whether text is in some character code we can identify. |
Try to determine whether text is in some character code we can identify. It also identifies EBCDIC by converting it to ISO-8859-1.