Package com.stardog.stark.util
Class ASCIIUtil
java.lang.Object
com.stardog.stark.util.ASCIIUtil
Utility methods for ASCII character checking.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisHex(int c) Check whether the supplied character is a Hexadecimal character.static booleanisLetter(int c) Checks whether the supplied character is a letter.static booleanisLetterOrNumber(int c) Checks whether the supplied character is a letter or number.static booleanisLowerCaseLetter(int c) Checks whether the supplied character is an lower-case letter.static booleanisNumber(int c) Checks whether the supplied character is a numberstatic booleanisUpperCaseLetter(int c) Checks whether the supplied character is an upper-case letter.
-
Constructor Details
-
ASCIIUtil
public ASCIIUtil()
-
-
Method Details
-
isLetterOrNumber
public static boolean isLetterOrNumber(int c) Checks whether the supplied character is a letter or number.- See Also:
-
isLetter
public static boolean isLetter(int c) Checks whether the supplied character is a letter. -
isUpperCaseLetter
public static boolean isUpperCaseLetter(int c) Checks whether the supplied character is an upper-case letter. -
isLowerCaseLetter
public static boolean isLowerCaseLetter(int c) Checks whether the supplied character is an lower-case letter. -
isNumber
public static boolean isNumber(int c) Checks whether the supplied character is a number -
isHex
public static boolean isHex(int c) Check whether the supplied character is a Hexadecimal character.- Parameters:
c-- Returns:
trueif c is a hexadecimal character,falseotherwise.
-