Package ubic.basecode.io
Class StringConverter
- java.lang.Object
-
- ubic.basecode.io.StringConverter
-
public class StringConverter extends Object
- Author:
- Kiran Keshav, Paul Pavlidis
-
-
Constructor Summary
Constructors Constructor Description StringConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
doubleArrayToString(double[] arrayToConvert)
Convert a double array to a delimited string.void
setDelimiter(String delimiter)
double[]
stringArrayToDoubles(String[] sArray)
double[]
stringToDoubles(String stringToParse)
-
-
-
Method Detail
-
doubleArrayToString
public String doubleArrayToString(double[] arrayToConvert)
Convert a double array to a delimited string.- Parameters:
arrayToConvert
-- Returns:
-
setDelimiter
public void setDelimiter(String delimiter)
-
stringArrayToDoubles
public double[] stringArrayToDoubles(String[] sArray)
- Parameters:
sArray
-- Returns:
- double[]
-
stringToDoubles
public double[] stringToDoubles(String stringToParse)
- Parameters:
stringToParse
-- Returns:
- double[]
-
-