public class

ASCIIUtility

extends Object
java.lang.Object
   ↳ com.google.code.com.sun.mail.util.ASCIIUtility

Summary

Public Methods
static byte[] getBytes(String s)
static byte[] getBytes(InputStream is)
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 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 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 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 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(byte[] b)
Convert the bytes into a String.
static String toString(ByteArrayInputStream is)
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static byte[] getBytes (String s)

Parameters
s

public static byte[] getBytes (InputStream is)

Parameters
is
Throws
IOException

public 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 . The range extends from start till, but not including end.

Based on java.lang.Integer.parseInt()

Parameters
b
start
end
radix
Throws
NumberFormatException

public 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 . The range extends from start till, but not including end.

Parameters
b
start
end
Throws
NumberFormatException

public 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 . The range extends from start till, but not including end.

Based on java.lang.Long.parseLong()

Parameters
b
start
end
radix
Throws
NumberFormatException

public 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 . The range extends from start till, but not including end.

Parameters
b
start
end
Throws
NumberFormatException

public static String toString (byte[] b, int start, int end)

Convert the bytes within the specified range of the given byte array into a String. The range extends from start till, but not including end.

Parameters
b
start
end

public static String toString (byte[] b)

Convert the bytes into a String.

Parameters
b

public static String toString (ByteArrayInputStream is)

Parameters
is