|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjodd.util.CharUtil
Various character utilities.
Constructor Summary | |
CharUtil()
|
Method Summary | |
static boolean |
equals(char c,
char[] match)
Match if character equals to any of the given character. |
static int |
findFirstAny(char[] source,
int index,
char[] match)
Finds index of the first character in given array the matches any from the given set of characters. |
static int |
findFirstDiff(char[] source,
int index,
char[] match)
Finds index of the first character in given array the differes from the given set of characters. |
static byte[] |
toByteArray(char[] carr)
Converts char array into byte array. |
static char[] |
toCharArray(byte[] barr)
Converts byte array to char array. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CharUtil()
Method Detail |
public static byte[] toByteArray(char[] carr)
carr
- char array to convert from
public static char[] toCharArray(byte[] barr)
barr
- byte array to covnert from
public static boolean equals(char c, char[] match)
c
- input charactermatch
- array of matching characters
true
if characters match any chararacter from given array,
otherwise false
public static int findFirstAny(char[] source, int index, char[] match)
source
- source to examineindex
- starting indexmatch
- array of characters to match
public static int findFirstDiff(char[] source, int index, char[] match)
source
- source to examineindex
- starting indexmatch
- array of characters to match
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |