intarsys runtime library

de.intarsys.tools.string
Class CharacterTools

java.lang.Object
  extended by de.intarsys.tools.string.CharacterTools

public class CharacterTools
extends Object

A tool class for the handling of strings.


Constructor Summary
CharacterTools()
           
 
Method Summary
static boolean isVowel(char c)
          true if c 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharacterTools

public CharacterTools()
Method Detail

isVowel

public static boolean isVowel(char c)
true if c is a vowel.

Parameters:
c - The character to check.
Returns:
true if c 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.

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.