com.google.zxing.common
Class StringUtils
java.lang.Object
com.google.zxing.common.StringUtils
public final class StringUtils
- extends Object
Common string-related functions.
- Author:
- Sean Owen
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SHIFT_JIS
public static final String SHIFT_JIS
- See Also:
- Constant Field Values
guessEncoding
public static String guessEncoding(byte[] bytes,
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
Copyright © 2012. All Rights Reserved.