|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.python.core.util.StringUtil
public class StringUtil
String Utility methods.
| Constructor Summary | |
|---|---|
StringUtil()
|
|
| Method Summary | |
|---|---|
static String |
decapitalize(String string)
Decapitalize a String if it begins with a capital letter, e.g.: FooBar -> fooBar |
static String |
fromBytes(byte[] buf)
Return a new String with chars corresponding to buf. |
static String |
fromBytes(byte[] buf,
int off,
int len)
Return a new String with chars corresponding to buf from off to off + len. |
static String |
fromBytes(ByteBuffer buf)
Return a new String with chars corresponding to buf. |
static byte[] |
toBytes(String string)
Encodes this String into a sequence of bytes. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StringUtil()
| Method Detail |
|---|
public static byte[] toBytes(String string)
string - a String value
public static String fromBytes(byte[] buf,
int off,
int len)
buf - an array of bytesoff - the initial offsetlen - the length
public static String fromBytes(byte[] buf)
buf - an array of bytes
public static String fromBytes(ByteBuffer buf)
buf - a ByteBuffer of bytes
public static String decapitalize(String string)
string - a String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||