com.google.zxing.common
Class StringUtils
java.lang.Object
com.google.zxing.common.StringUtils
public final class StringUtils
- extends Object
Common string-related functions.
- Since:
- BlackBerry API 7.0.0
SHIFT_JIS
public static final String SHIFT_JIS
- See Also:
- Constant Field Values
- Since:
- BlackBerry API 7.0.0
UTF8
public static final String UTF8
- See Also:
- Constant Field Values
- Since:
- BlackBerry API 7.0.0
ISO88591
public static final String ISO88591
- See Also:
- Constant Field Values
- Since:
- BlackBerry API 7.0.0
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:
StringUtils.SHIFT_JIS
, StringUtils.UTF8
, StringUtils.ISO88591
, or the platform
default encoding if none of these can possibly be correct - Since:
- BlackBerry API 7.0.0
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal