|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataReader
Data reader interface.
Method Summary | |
---|---|
void |
close()
Closes the input stream. |
boolean |
dataPending()
Returns true if there remains data to be read. |
Map<String,DataField> |
readAllFields()
Reads all fields in the file and returns a hashmap indexed by field labels. |
Map<String,DataField> |
readAllNextFields()
Reads all remaining fields in the file and returns a hashmap indexed by field labels. |
double |
readDouble(String label)
Reads the first field labeled as label and returns its double value. |
double[] |
readDoubleArray(String label)
Reads the first field labeled as label and returns its value as a one-dimensional array of double's. |
double[][] |
readDoubleArray2D(String label)
Reads the first field labeled as label and returns its value as a two-dimensional array of double's. |
DataField |
readField(String label)
Reads the first field labeled as label. |
float |
readFloat(String label)
Reads the first field labeled as label and returns its float value. |
float[] |
readFloatArray(String label)
Reads the first field labeled as label and returns its value as a one-dimensional array of float's. |
float[][] |
readFloatArray2D(String label)
Reads the first field labeled as label and returns its value as a two-dimensional array of float's. |
int |
readInt(String label)
Reads the first field labeled as label and returns its int value. |
int[] |
readIntArray(String label)
Reads the first field labeled as label and returns its value as a one-dimensional array of int's. |
int[][] |
readIntArray2D(String label)
Reads the first field labeled as label and returns its value as a two-dimensional array of int's. |
DataField |
readNextField()
Reads the next available field. |
String |
readString(String label)
Reads the first field labeled as label and returns its String value. |
String[] |
readStringArray(String label)
Reads the first field labeled as label and returns its value as a one-dimensional array of String's. |
String[][] |
readStringArray2D(String label)
Reads the first field labeled as label and returns its value as a two-dimensional array of String's. |
void |
reset()
Resets the reader to its initial state, i.e. |
Method Detail |
---|
String readString(String label) throws IOException
IOException
int readInt(String label) throws IOException
IOException
float readFloat(String label) throws IOException
IOException
double readDouble(String label) throws IOException
IOException
String[] readStringArray(String label) throws IOException
IOException
int[] readIntArray(String label) throws IOException
IOException
float[] readFloatArray(String label) throws IOException
IOException
double[] readDoubleArray(String label) throws IOException
IOException
String[][] readStringArray2D(String label) throws IOException
IOException
int[][] readIntArray2D(String label) throws IOException
IOException
float[][] readFloatArray2D(String label) throws IOException
IOException
double[][] readDoubleArray2D(String label) throws IOException
IOException
Map<String,DataField> readAllNextFields() throws IOException
"_data01_"
, "_data02_"
, ...
IOException
Map<String,DataField> readAllFields() throws IOException
"_data01_"
, "_data02_"
, ...
IOException
DataField readNextField() throws IOException
IOException
DataField readField(String label) throws IOException
IOException
void close() throws IOException
IOException
void reset() throws IOException
IOException
boolean dataPending() throws IOException
IOException
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |