All Packages Class Hierarchy This Package Previous Next Index
Class sun.servlet.util.Ascii
java.lang.Object
|
+----sun.servlet.util.Ascii
- public class Ascii
- extends Object
This class implements some basic ASCII character handling functions.
-
Ascii()
-
-
isAlpha(int)
- Returns true if the specified ASCII character is upper or lower case.
-
isDigit(int)
- Returns true if the specified ASCII character is a digit.
-
isLower(int)
- Returns true if the specified ASCII character is lower case.
-
isUpper(int)
- Returns true if the specified ASCII character is upper case.
-
isWhite(int)
- Returns true if the specified ASCII character is white space.
-
parseInt(byte[], int, int)
- Parses an unsigned integer from the specified subarray of bytes.
-
toLower(int)
- Returns the lower case equivalent of the specified ASCII character.
-
toUpper(int)
- Returns the upper case equivalent of the specified ASCII character.
Ascii
public Ascii()
toUpper
public static int toUpper(int c)
- Returns the upper case equivalent of the specified ASCII character.
toLower
public static int toLower(int c)
- Returns the lower case equivalent of the specified ASCII character.
isAlpha
public static boolean isAlpha(int c)
- Returns true if the specified ASCII character is upper or lower case.
isUpper
public static boolean isUpper(int c)
- Returns true if the specified ASCII character is upper case.
isLower
public static boolean isLower(int c)
- Returns true if the specified ASCII character is lower case.
isWhite
public static boolean isWhite(int c)
- Returns true if the specified ASCII character is white space.
isDigit
public static boolean isDigit(int c)
- Returns true if the specified ASCII character is a digit.
parseInt
public static int parseInt(byte b[],
int off,
int len) throws NumberFormatException
- Parses an unsigned integer from the specified subarray of bytes.
- 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
All Packages Class Hierarchy This Package Previous Next Index