laser.alphabet.labelpattern.test
Class WhitespaceUtilities

java.lang.Object
  extended by laser.alphabet.labelpattern.test.WhitespaceUtilities

public class WhitespaceUtilities
extends java.lang.Object

This class contains utilities for manipulating test Strings that contain Whitespace.

Author:
Nathan A. Jokel (laser-software@cs.umass.edu)
See Also:
Character.isWhitespace(char)

Field Summary
static java.lang.String[] WHITESPACE_COMBINATIONS
          Various combinations of characters that comprise whitespace.
 
Constructor Summary
WhitespaceUtilities()
           
 
Method Summary
static java.lang.String[] insertWhitespace(java.lang.String[] pieces)
          Inserts various combinations of whitespace in between the specified String pieces, then concatonates the pieces and whitespace together.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WHITESPACE_COMBINATIONS

public static final java.lang.String[] WHITESPACE_COMBINATIONS
Various combinations of characters that comprise whitespace.

See Also:
Character.isWhitespace(char)
Constructor Detail

WhitespaceUtilities

public WhitespaceUtilities()
Method Detail

insertWhitespace

public static java.lang.String[] insertWhitespace(java.lang.String[] pieces)
Inserts various combinations of whitespace in between the specified String pieces, then concatonates the pieces and whitespace together. The resulting Strings are returned in an array.

Parameters:
pieces - The specified pieces.
Returns:
An array of the resulting Strings.
Throws:
java.lang.NullPointerException - The specified array or any of its elements are null.