This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


com.sun.mail.util
class ASCIIUtility

com.sun.mail.util.ASCIIUtility

public class ASCIIUtility
extends Object


Method Summary
static byte[]

          
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

getBytes

public static byte[] getBytes(InputStream is)
                       throws IOException
Parameters:
is
Throws:
IOException

getBytes

public static byte[] getBytes(String s)
Parameters:
s

parseInt

public static int parseInt(byte[] b,
                           int start,
                           int end)
                    throws NumberFormatException
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

parseInt

public static int parseInt(byte[] b,
                           int start,
                           int end,
                           int radix)
                    throws NumberFormatException
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

parseLong

public static long parseLong(byte[] b,
                             int start,
                             int end)
                      throws NumberFormatException
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

parseLong

public static long parseLong(byte[] b,
                             int start,
                             int end,
                             int radix)
                      throws NumberFormatException
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

toString

public static String toString(ByteArrayInputStream is)
Parameters:
is

toString

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


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.