public class Parser extends Object
| Constructor and Description |
|---|
Parser() |
| Modifier and Type | Method and Description |
|---|---|
static String |
fixDataString(String str) |
static int[] |
markLines(String data,
char eol) |
static int |
parseFloatArrayBsData(String[] tokens,
BS bs,
float[] data) |
static float[] |
parseFloatArrayFromMatchAndField(String str,
BS bs,
int fieldMatch,
int fieldMatchColumnCount,
int[] matchData,
int field,
int fieldColumnCount,
float[] data,
int firstLine)
the major lifter here.
|
static int |
parseStringInfestedFloatArray(String str,
BS bs,
float[] data)
parses a "dirty" string for floats.
|
public static int parseStringInfestedFloatArray(String str, BS bs, float[] data)
str - the string to parsebs - the atom positions to assigndata - the (sparce) array to fillpublic static float[] parseFloatArrayFromMatchAndField(String str, BS bs, int fieldMatch, int fieldMatchColumnCount, int[] matchData, int field, int fieldColumnCount, float[] data, int firstLine)
str - string containing the databs - selects specific rows of the datafieldMatch - a free-format field pointer, or a column pointerfieldMatchColumnCount - specifies a column count -- not free-formatmatchData - an array of data to match (atom numbers)field - a free-format field pointer, or a column pointerfieldColumnCount - specifies a column count -- not free-formatdata - float array to modify or null if size unknownfirstLine - first line to parse (1 indicates all)public static int[] markLines(String data, char eol)