Package de.intarsys.tools.string
Class CharacterTools
- java.lang.Object
-
- de.intarsys.tools.string.CharacterTools
-
public class CharacterTools extends java.lang.Object
A tool class for the handling of strings.
-
-
Constructor Summary
Constructors Constructor Description CharacterTools()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isVowel(char c)
true
ifc
is a vowel.static byte[]
toByteArray(char[] value)
Create a byte array from the char array ignoring any encoding.static char[]
toCharArray(byte[] value)
Create a char array from the byte array ignoring any encoding.
-
-
-
Method Detail
-
isVowel
public static boolean isVowel(char c)
true
ifc
is a vowel.- Parameters:
c
- The character to check.- Returns:
true
ifc
is a vowel.
-
toByteArray
public static byte[] toByteArray(char[] value)
Create a byte array from the char array ignoring any encoding.- Parameters:
value
-- Returns:
- A byte array created from the char array in value.
-
toCharArray
public static char[] toCharArray(byte[] value)
Create a char array from the byte array ignoring any encoding.- Parameters:
value
-- Returns:
- A char array created from the byte array in value.
-
-