org.apache.tomcat.util.buf
public final class Ascii extends Object
Method Summary | |
---|---|
static boolean | isAlpha(int c)
Returns true if the specified ASCII character is upper or lower case. |
static boolean | isDigit(int c)
Returns true if the specified ASCII character is a digit. |
static boolean | isLower(int c)
Returns true if the specified ASCII character is lower case. |
static boolean | isUpper(int c)
Returns true if the specified ASCII character is upper case. |
static boolean | isWhite(int c)
Returns true if the specified ASCII character is white space. |
static int | parseInt(byte[] b, int off, int len)
Parses an unsigned integer from the specified subarray of bytes. |
static int | parseInt(char[] b, int off, int len) |
static long | parseLong(byte[] b, int off, int len)
Parses an unsigned long from the specified subarray of bytes. |
static long | parseLong(char[] b, int off, int len) |
static int | toLower(int c)
Returns the lower case equivalent of the specified ASCII character. |
static int | toUpper(int c)
Returns the upper case equivalent of the specified ASCII character. |
Parameters: b the bytes to parse off the start offset of the bytes len the length of the bytes
Throws: NumberFormatException if the integer format was invalid
Parameters: b the bytes to parse off the start offset of the bytes len the length of the bytes
Throws: NumberFormatException if the long format was invalid