| java.lang.Object org.apache.tomcat.util.buf.Ascii
Ascii | final public class Ascii (Code) | | This class implements some basic ASCII character handling functions.
author: dac@eng.sun.com author: James Todd [gonzo@eng.sun.com] |
Method Summary | |
public static boolean | isAlpha(int c) Returns true if the specified ASCII character is upper or lower case. | public static boolean | isDigit(int c) Returns true if the specified ASCII character is a digit. | public static boolean | isLower(int c) Returns true if the specified ASCII character is lower case. | public static boolean | isUpper(int c) Returns true if the specified ASCII character is upper case. | public static boolean | isWhite(int c) Returns true if the specified ASCII character is white space. | public static int | parseInt(byte[] b, int off, int len) Parses an unsigned integer from the specified subarray of bytes. | public static int | parseInt(char[] b, int off, int len) | public static long | parseLong(byte[] b, int off, int len) Parses an unsigned long from the specified subarray of bytes. | public static long | parseLong(char[] b, int off, int len) | public static int | toLower(int c) Returns the lower case equivalent of the specified ASCII character. | public static int | toUpper(int c) Returns the upper case equivalent of the specified ASCII character. |
isAlpha | public static boolean isAlpha(int c)(Code) | | Returns true if the specified ASCII character is upper or lower case.
|
isDigit | public static boolean isDigit(int c)(Code) | | Returns true if the specified ASCII character is a digit.
|
isLower | public static boolean isLower(int c)(Code) | | Returns true if the specified ASCII character is lower case.
|
isUpper | public static boolean isUpper(int c)(Code) | | Returns true if the specified ASCII character is upper case.
|
isWhite | public static boolean isWhite(int c)(Code) | | Returns true if the specified ASCII character is white space.
|
parseInt | public static int parseInt(byte[] b, int off, int len) throws NumberFormatException(Code) | | Parses an unsigned integer from the specified subarray of bytes.
Parameters: b - the bytes to parse Parameters: off - the start offset of the bytes Parameters: len - the length of the bytes exception: NumberFormatException - if the integer format was invalid |
parseLong | public static long parseLong(byte[] b, int off, int len) throws NumberFormatException(Code) | | Parses an unsigned long from the specified subarray of bytes.
Parameters: b - the bytes to parse Parameters: off - the start offset of the bytes Parameters: len - the length of the bytes exception: NumberFormatException - if the long format was invalid |
toLower | public static int toLower(int c)(Code) | | Returns the lower case equivalent of the specified ASCII character.
|
toUpper | public static int toUpper(int c)(Code) | | Returns the upper case equivalent of the specified ASCII character.
|
|
|