Class StringUtils
- java.lang.Object
-
- zext.plantuml.com.google.zxing.common.StringUtils
-
public final class StringUtils extends java.lang.Object
Common string-related functions.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
SHIFT_JIS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
guessEncoding(byte[] bytes, java.util.Hashtable hints)
-
-
-
Field Detail
-
SHIFT_JIS
public static final java.lang.String SHIFT_JIS
- See Also:
- Constant Field Values
-
-
Method Detail
-
guessEncoding
public static java.lang.String guessEncoding(byte[] bytes, java.util.Hashtable hints)
- Parameters:
bytes
- bytes encoding a string, whose encoding should be guessedhints
- decode hints if applicable- Returns:
- name of guessed encoding; at the moment will only guess one of:
SHIFT_JIS
,UTF8
,ISO88591
, or the platform default encoding if none of these can possibly be correct
-
-