| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class ASCIIUtility extends Object
Method Summary | |
---|---|
static byte[] |
getBytes(InputStream is) |
static byte[] |
|
static int |
parseInt(byte[] b, int start, int end) Convert the bytes within the specified range of the given byte array into a signed integer . |
static int |
parseInt(byte[] b, int start, int end, int radix) Convert the bytes within the specified range of the given byte array into a signed integer in the given radix . |
static long |
parseLong(byte[] b, int start, int end) Convert the bytes within the specified range of the given byte array into a signed long . |
static long |
parseLong(byte[] b, int start, int end, int radix) Convert the bytes within the specified range of the given byte array into a signed long in the given radix . |
static String |
|
static String |
toString(byte[] b, int start, int end) Convert the bytes within the specified range of the given byte array into a String. |
Method Detail |
---|
public static byte[] getBytes(InputStream is) throws IOException
is
IOException
public static byte[] getBytes(String s)
s
public static int parseInt(byte[] b, int start, int end) throws NumberFormatException
start
till, but not including end
.
b
start
end
NumberFormatException
public static int parseInt(byte[] b, int start, int end, int radix) throws NumberFormatException
start
till, but not including end
. Based on java.lang.Integer.parseInt()
b
start
end
radix
NumberFormatException
public static long parseLong(byte[] b, int start, int end) throws NumberFormatException
start
till, but not including end
.
b
start
end
NumberFormatException
public static long parseLong(byte[] b, int start, int end, int radix) throws NumberFormatException
start
till, but not including end
. Based on java.lang.Long.parseLong()
b
start
end
radix
NumberFormatException
public static String toString(ByteArrayInputStream is)
is
public static String toString(byte[] b, int start, int end)
start
till, but not including end
.
b
start
end
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |