|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openscience.nmrshiftdb.util.ParseUtils
public class ParseUtils
This class contains utitilies for parsing input strings
| Constructor Summary | |
|---|---|
ParseUtils()
|
|
| Method Summary | |
|---|---|
static java.util.ArrayList |
parseSpectrum(java.lang.String input)
Returns an ArrayList of ValueTriples out of an input string like 3,4\n5;6... |
static java.util.ArrayList |
parseSpectrumFromSpecFile(java.lang.String spectrum)
Returns an ArrayList of ValueTriples out of an input string like 3,4,1|5,6,2|..., as found in the specfile attribute of Spectrum in the database |
static void |
removeDuplicates(java.util.List al)
Removes duplicate entries from an ArrayList of ValueTriples |
static java.lang.String |
toInputSpectrum(java.util.ArrayList v)
Returns an array of ValueTriple in the format of the input String |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParseUtils()
| Method Detail |
|---|
public static java.util.ArrayList parseSpectrum(java.lang.String input)
throws java.lang.NumberFormatException
input - The input
java.lang.NumberFormatException - User inputed non-numerical values
public static java.util.ArrayList parseSpectrumFromSpecFile(java.lang.String spectrum)
throws java.lang.NumberFormatException
spectrum - Description of Parameter
java.lang.NumberFormatException - User inputed non-numerical valuespublic static void removeDuplicates(java.util.List al)
al - The ArrayList to processpublic static java.lang.String toInputSpectrum(java.util.ArrayList v)
v - The valueTriples
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||