org.jmol.jcamp.utils
Class StringDataUtils

java.lang.Object
  extended by org.jmol.jcamp.utils.StringDataUtils

public class StringDataUtils
extends java.lang.Object


Constructor Summary
StringDataUtils()
           
 
Method Summary
static int compareStrings(java.lang.String str1, java.lang.String str2)
          Compares two strings provided and returns an expected integer value based on the comparison
static java.lang.String jcampSubString(java.lang.String str, int i, int j)
          Returns the sub-string of the string provided
static java.lang.String reduceDataPrecision(java.lang.String data)
          Reduces the precision of numerical data strings provided
static java.lang.String truncateEndBlanks(java.lang.String str)
          Truncates blank spaces at the end of the string provided
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDataUtils

public StringDataUtils()
Method Detail

jcampSubString

public static java.lang.String jcampSubString(java.lang.String str,
                                              int i,
                                              int j)
Returns the sub-string of the string provided

Parameters:
str -
i -
j -
Returns:
String

truncateEndBlanks

public static java.lang.String truncateEndBlanks(java.lang.String str)
Truncates blank spaces at the end of the string provided

Parameters:
str -
Returns:
String

compareStrings

public static int compareStrings(java.lang.String str1,
                                 java.lang.String str2)
Compares two strings provided and returns an expected integer value based on the comparison

Parameters:
str1 -
str2 -
Returns:
int

reduceDataPrecision

public static java.lang.String reduceDataPrecision(java.lang.String data)
Reduces the precision of numerical data strings provided

Parameters:
data -
Returns:
String