Package org.apache.tomcat.util.buf
Class Ascii
java.lang.Object
org.apache.tomcat.util.buf.Ascii
This class implements some basic ASCII character handling functions.
- Author:
- [email protected], James Todd [[email protected]]
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
Ascii
public Ascii()
-
-
Method Details
-
toLower
public static int toLower(int c) Returns the lower case equivalent of the specified ASCII character.- Parameters:
c
- The char- Returns:
- the lower case equivalent char
-
parseLong
Parses an unsigned long from the specified subarray of bytes.- Parameters:
b
- the bytes to parseoff
- the start offset of the byteslen
- the length of the bytes- Returns:
- the long value
- Throws:
NumberFormatException
- if the long format was invalid
-