public class ASCIIUtility
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
getBytes(java.io.InputStream is) |
static byte[] |
getBytes(java.lang.String s) |
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 java.lang.String |
toString(byte[] b)
Convert the bytes into a String.
|
static java.lang.String |
toString(byte[] b,
int start,
int end)
Convert the bytes within the specified range of the given byte
array into a String.
|
static java.lang.String |
toString(java.io.ByteArrayInputStream is) |
public static int parseInt(byte[] b,
int start,
int end,
int radix)
throws java.lang.NumberFormatException
start till, but not including end. Based on java.lang.Integer.parseInt()
java.lang.NumberFormatExceptionpublic static int parseInt(byte[] b,
int start,
int end)
throws java.lang.NumberFormatException
start till, but not including end. java.lang.NumberFormatExceptionpublic static long parseLong(byte[] b,
int start,
int end,
int radix)
throws java.lang.NumberFormatException
start till, but not including end. Based on java.lang.Long.parseLong()
java.lang.NumberFormatExceptionpublic static long parseLong(byte[] b,
int start,
int end)
throws java.lang.NumberFormatException
start till, but not including end. java.lang.NumberFormatExceptionpublic static java.lang.String toString(byte[] b,
int start,
int end)
start
till, but not including end. public static java.lang.String toString(byte[] b)
public static java.lang.String toString(java.io.ByteArrayInputStream is)
public static byte[] getBytes(java.lang.String s)
public static byte[] getBytes(java.io.InputStream is)
throws java.io.IOException
java.io.IOException"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"