public class ASCIIUtility extends Object
| Modifier and Type | Method and Description | 
|---|---|
| static byte[] | getBytes(InputStream is) | 
| static byte[] | getBytes(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 String | toString(byte[] b)Convert the bytes into a 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. | 
| static String | toString(ByteArrayInputStream is) | 
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 - the bytesstart - the first byte offsetend - the last byte offsetradix - the radixNumberFormatException - for conversion errorspublic static int parseInt(byte[] b,
                           int start,
                           int end)
                    throws NumberFormatException
start till, but not including end.b - the bytesstart - the first byte offsetend - the last byte offsetNumberFormatException - for conversion errorspublic 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 - the bytesstart - the first byte offsetend - the last byte offsetradix - the radixNumberFormatException - for conversion errorspublic static long parseLong(byte[] b,
                             int start,
                             int end)
                      throws NumberFormatException
start till, but not including end. b - the bytesstart - the first byte offsetend - the last byte offsetNumberFormatException - for conversion errorspublic static String toString(byte[] b, int start, int end)
start
 till, but not including end.b - the bytesstart - the first byte offsetend - the last byte offsetpublic static String toString(byte[] b)
b - the bytespublic static String toString(ByteArrayInputStream is)
public static byte[] getBytes(String s)
public static byte[] getBytes(InputStream is) throws IOException
IOExceptionCopyright © 2017 JBoss by Red Hat. All rights reserved.