|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.api.client.util.Strings
public class Strings
Utilities for strings.
Field Summary | |
---|---|
static String |
LINE_SEPARATOR
Line separator to use for this OS, i.e. |
static String |
VERSION
Current version of the Google API Client Library for Java. |
Method Summary | |
---|---|
static String |
fromBytesUtf8(byte[] bytes)
Deprecated. (scheduled to be removed in 1.8) Use StringUtils.newStringUtf8(byte[]) |
static byte[] |
toBytesUtf8(String string)
Deprecated. (scheduled to be removed in 1.8) Use StringUtils.getBytesUtf8(String) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VERSION
public static final String LINE_SEPARATOR
"\n"
or "\r\n"
.
Method Detail |
---|
@Deprecated public static byte[] toBytesUtf8(String string)
StringUtils.getBytesUtf8(String)
"UTF-8"
charset.
string
- given string
@Deprecated public static String fromBytesUtf8(byte[] bytes)
StringUtils.newStringUtf8(byte[])
String
by decoding the specified array of bytes using the "UTF-8"
charset.
The length of the new String
is a function of the charset, and hence may not be equal
to the length of the byte array.
bytes
- bytes to be decoded into characters
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |