|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.util.buf.Ascii
public final class Ascii
This class implements some basic ASCII character handling functions.
Constructor Summary | |
---|---|
Ascii()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Ascii()
Method Detail |
---|
public static int toUpper(int c)
public static int toLower(int c)
public static boolean isAlpha(int c)
public static boolean isUpper(int c)
public static boolean isLower(int c)
public static boolean isWhite(int c)
public static boolean isDigit(int c)
public static int parseInt(byte[] b, int off, int len) throws java.lang.NumberFormatException
b
- the bytes to parseoff
- the start offset of the byteslen
- the length of the bytes
java.lang.NumberFormatException
- if the integer format was invalidpublic static int parseInt(char[] b, int off, int len) throws java.lang.NumberFormatException
java.lang.NumberFormatException
public static long parseLong(byte[] b, int off, int len) throws java.lang.NumberFormatException
b
- the bytes to parseoff
- the start offset of the byteslen
- the length of the bytes
java.lang.NumberFormatException
- if the long format was invalidpublic static long parseLong(char[] b, int off, int len) throws java.lang.NumberFormatException
java.lang.NumberFormatException
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |