Class Ascii
java.lang.Object
com.predic8.membrane.core.http.cookie.Ascii
This class implements some basic ASCII character handling functions.
Source: http://tomcat.apache.org/ License: http://www.apache.org/licenses/LICENSE-2.0
- Author:
- dac@eng.sun.com, James Todd [gonzo@eng.sun.com]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAlpha(int c) Deprecated.Unused.static booleanisDigit(int c) Returns true if the specified ASCII character is a digit.static booleanisLower(int c) Deprecated.Unused.static booleanisUpper(int c) Deprecated.Unused.static booleanisWhite(int c) Deprecated.Unused.static intparseInt(byte[] b, int off, int len) Deprecated.Unused.static intparseInt(char[] b, int off, int len) Deprecated.Unused.static longparseLong(byte[] b, int off, int len) Parses an unsigned long from the specified subarray of bytes.static longparseLong(char[] b, int off, int len) Deprecated.Unused.static inttoLower(int c) Returns the lower case equivalent of the specified ASCII character.static inttoUpper(int c) Deprecated.Unused.
-
Constructor Details
-
Ascii
public Ascii()
-
-
Method Details
-
toUpper
Deprecated.Unused. Will be removed in Tomcat 8.0.x onwards.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
Deprecated.Unused. Will be removed in Tomcat 8.0.x onwards.Returns true if the specified ASCII character is upper or lower case. -
isUpper
Deprecated.Unused. Will be removed in Tomcat 8.0.x onwards.Returns true if the specified ASCII character is upper case. -
isLower
Deprecated.Unused. Will be removed in Tomcat 8.0.x onwards.Returns true if the specified ASCII character is lower case. -
isWhite
Deprecated.Unused. Will be removed in Tomcat 8.0.x onwards.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
Deprecated.Unused. Will be removed in Tomcat 8.0.x onwards.Parses an unsigned integer from the specified subarray of bytes.- Parameters:
b- the bytes to parseoff- the start offset of the byteslen- the length of the bytes- Throws:
NumberFormatException- if the integer format was invalid
-
parseInt
Deprecated.Unused. Will be removed in Tomcat 8.0.x onwards.- Throws:
NumberFormatException
-
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- Throws:
NumberFormatException- if the long format was invalid
-
parseLong
Deprecated.Unused. Will be removed in Tomcat 8.0.x onwards.- Throws:
NumberFormatException
-