| java.lang.Object org.apache.harmony.luni.util.Util
Util | final public class Util (Code) | | |
Method Summary | |
public static String | convertFromUTF8(byte[] buf, int offset, int utfSize) | public static String | convertUTF8WithBuf(byte[] buf, char[] out, int offset, int utfSize) | public static String | decode(String s, boolean convertPlus) '%' and two following hex digit characters are converted to the
equivalent byte value. | public static byte[] | getBytes(String name) | public static byte[] | getUTF8Bytes(String name) | public static long | parseDate(String string) Answers the millisecond value of the date and time parsed from the
specified String. | public static String | toASCIILowerCase(String s) | public static String | toASCIIUpperCase(String s) | public static String | toString(byte[] bytes) | public static String | toString(byte[] bytes, int offset, int length) | public static String | toUTF8String(byte[] bytes) | public static String | toUTF8String(byte[] bytes, int offset, int length) |
decode | public static String decode(String s, boolean convertPlus)(Code) | | '%' and two following hex digit characters are converted to the
equivalent byte value. All other characters are passed through
unmodified. e.g. "ABC %24%25" -> "ABC $%"
Parameters: s - java.lang.String The encoded string. java.lang.String The decoded version. |
getBytes | public static byte[] getBytes(String name)(Code) | | Get bytes from String using default encoding; default encoding can
be changed via "os.encoding" property
Parameters: name - input String byte array |
getUTF8Bytes | public static byte[] getUTF8Bytes(String name)(Code) | | Get bytes from String with UTF8 encoding
Parameters: name - input String byte array |
parseDate | public static long parseDate(String string)(Code) | | Answers the millisecond value of the date and time parsed from the
specified String. Many date/time formats are recognized
Parameters: string - the String to parse the millisecond value parsed from the String |
toString | public static String toString(byte[] bytes, int offset, int length)(Code) | | |
toUTF8String | public static String toUTF8String(byte[] bytes)(Code) | | |
toUTF8String | public static String toUTF8String(byte[] bytes, int offset, int length)(Code) | | |
|
|