|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object umontreal.iro.lecuyer.util.io.AbstractDataReader
public abstract class AbstractDataReader
This abstract class implements shared functionality for data readers.
Constructor Summary | |
---|---|
AbstractDataReader()
|
Method Summary | |
---|---|
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 first field labeled as label and returns its double value. |
double[] |
readDoubleArray(String label)
Reads first field labeled as label and returns its value as a one-dimensional array of double's. |
double[][] |
readDoubleArray2D(String label)
Reads first field labeled as label and returns its value as a two-dimensional array of double's. |
float |
readFloat(String label)
Reads first field labeled as label and returns its float value. |
float[] |
readFloatArray(String label)
Reads first field labeled as label and returns its value as a one-dimensional array of float's. |
float[][] |
readFloatArray2D(String label)
Reads first field labeled as label and returns its value as a two-dimensional array of float's. |
int |
readInt(String label)
Reads first field labeled as label and returns its int value. |
int[] |
readIntArray(String label)
Reads first field labeled as label and returns its value as a one-dimensional array of int's. |
int[][] |
readIntArray2D(String label)
Reads first field labeled as label and returns its value as a two-dimensional array of int's. |
String |
readString(String label)
Reads first field labeled as label and returns its String value. |
String[] |
readStringArray(String label)
Reads first field labeled as label and returns its value as a one-dimensional array of String's. |
String[][] |
readStringArray2D(String label)
Reads first field labeled as label and returns its value as a two-dimensional array of String's. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface umontreal.iro.lecuyer.util.io.DataReader |
---|
close, dataPending, readField, readNextField, reset |
Constructor Detail |
---|
public AbstractDataReader()
Method Detail |
---|
public String readString(String label) throws IOException
readString
in interface DataReader
IOException
public int readInt(String label) throws IOException
readInt
in interface DataReader
IOException
public float readFloat(String label) throws IOException
readFloat
in interface DataReader
IOException
public double readDouble(String label) throws IOException
readDouble
in interface DataReader
IOException
public String[] readStringArray(String label) throws IOException
readStringArray
in interface DataReader
IOException
public int[] readIntArray(String label) throws IOException
readIntArray
in interface DataReader
IOException
public float[] readFloatArray(String label) throws IOException
readFloatArray
in interface DataReader
IOException
public double[] readDoubleArray(String label) throws IOException
readDoubleArray
in interface DataReader
IOException
public String[][] readStringArray2D(String label) throws IOException
readStringArray2D
in interface DataReader
IOException
public int[][] readIntArray2D(String label) throws IOException
readIntArray2D
in interface DataReader
IOException
public float[][] readFloatArray2D(String label) throws IOException
readFloatArray2D
in interface DataReader
IOException
public double[][] readDoubleArray2D(String label) throws IOException
readDoubleArray2D
in interface DataReader
IOException
public Map<String,DataField> readAllNextFields() throws IOException
"_data01_"
, "_data02_"
, ...
readAllNextFields
in interface DataReader
IOException
public Map<String,DataField> readAllFields() throws IOException
"_data01_"
, "_data02_"
, ...
readAllFields
in interface DataReader
IOException
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |