com.google.zxing.common
Class StringUtils

java.lang.Object
  extended by com.google.zxing.common.StringUtils

public final class StringUtils
extends Object

Common string-related functions.

Since:
BlackBerry API 7.0.0

Field Summary
static String ISO88591
           
static String SHIFT_JIS
           
static String UTF8
           
 
Method Summary
static String guessEncoding(byte[] bytes, Hashtable hints)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 



Field Detail

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


Method Detail

guessEncoding

public static String guessEncoding(byte[] bytes,
                                   Hashtable hints)
Parameters:
bytes - bytes encoding a string, whose encoding should be guessed
hints - 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