org.graphnetwork.util
Class String

java.lang.Object
  extended by org.graphnetwork.util.String

public class String
extends java.lang.Object


Constructor Summary
String()
           
 
Method Summary
static java.lang.Object[] extractArrayFromString(java.lang.String s)
          Extracts the contents of a String to an array
static java.lang.String extractStringFromArray(java.lang.Object[] a, String s)
          Extracts the contents of an array to a String variable and returns it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

String

public String()
Method Detail

extractStringFromArray

public static java.lang.String extractStringFromArray(java.lang.Object[] a,
                                                      String s)
Extracts the contents of an array to a String variable and returns it

Parameters:
a - the array with the contents
s - the string between each element (data separator)
Returns:
the String representation of the array

extractArrayFromString

public static java.lang.Object[] extractArrayFromString(java.lang.String s)
Extracts the contents of a String to an array

Parameters:
s - the String with the contents to be extracted
Returns:
the array with the contents of the String