com.tensegrity.generic.util
Class ArrayUtilities

java.lang.Object
  extended bycom.tensegrity.generic.util.ArrayUtilities

public class ArrayUtilities
extends java.lang.Object

The ArrayUtilities provides utility methods that are usefull when working with arrays.

Version:
$Id: ArrayUtilities.java,v 1.2 2006/01/26 16:01:25 MichaelKegel Exp $
Author:
MKegel

Method Summary
static java.lang.String[] getStringTokenArray(java.lang.String str, java.lang.String delims, boolean trim)
          Returns an array of String tokens.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStringTokenArray

public static final java.lang.String[] getStringTokenArray(java.lang.String str,
                                                           java.lang.String delims,
                                                           boolean trim)
Returns an array of String tokens. These tokens are given throught str and delimeted by the characters given throught delims

Parameters:
str - the String that consists of a set of tokens
delims - the delimiters the tokens are delimited by
trim - a flag that indicates whether the token should be trimmed or not
Returns:
String[] the extracted String token gathered in an array


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.