|
SSJ V. 1.2.5. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.util.TextDataReader
public class TextDataReader
Provides static methods to read data from text files.
Constructor Summary | |
---|---|
TextDataReader()
|
Method Summary | |
---|---|
static double[] |
readDoubleData(File file)
Opens the file referred to by the file object file, and calls readDoubleData to
obtain an array of double-precision values from
the file. |
static double[] |
readDoubleData(Reader input)
Reads an array of double-precision values from the reader input. |
static double[] |
readDoubleData(String file)
Opens the file with name file, and calls readDoubleData to
obtain an array of double-precision values from
the file. |
static double[][] |
readDoubleData2D(File file)
Opens the file referred to by the file object file, and calls readDoubleData2D to
obtain a matrix of double-precision values from
the file. |
static double[][] |
readDoubleData2D(Reader input)
Uses the reader input to obtain a 2-dimensional array of double-precision values. |
static double[][] |
readDoubleData2D(String file)
Opens the file with name file, and calls readDoubleData2D to
obtain a matrix of double-precision values from
the file. |
static int[] |
readIntData(File file)
This is equivalent to readDoubleData ,
for reading integers. |
static int[] |
readIntData(Reader input)
This is equivalent to readDoubleData ,
for reading integers. |
static int[] |
readIntData(String file)
This is equivalent to readDoubleData ,
for reading integers. |
static int[][] |
readIntData2D(File file)
This is equivalent to readDoubleData2D ,
for reading integers. |
static int[][] |
readIntData2D(Reader input)
This is equivalent to readDoubleData2D ,
for reading integers. |
static int[][] |
readIntData2D(String file)
This is equivalent to readDoubleData2D ,
for reading integers. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextDataReader()
Method Detail |
---|
public static double[] readDoubleData(Reader input) throws IOException
input
- the reader to obtain data from.
IOException
- if an I/O error occurs.public static double[] readDoubleData(File file) throws IOException
readDoubleData
to
obtain an array of double-precision values from
the file.
file
- the file object representing the file to read.
IOException
- if an I/O error occurs.public static double[] readDoubleData(String file) throws IOException
readDoubleData
to
obtain an array of double-precision values from
the file.
file
- the name of the file to read.
IOException
- if an I/O error occurs.public static int[] readIntData(Reader input) throws IOException
readDoubleData
,
for reading integers.
input
- the reader to obtain data from.
IOException
- if an I/O error occurs.public static int[] readIntData(File file) throws IOException
readDoubleData
,
for reading integers.
file
- the file object represented to file to read.
IOException
- if an I/O error occurs.public static int[] readIntData(String file) throws IOException
readDoubleData
,
for reading integers.
file
- the name of the file to read.
IOException
- if an I/O error occurs.public static double[][] readDoubleData2D(Reader input) throws IOException
input
- the reader to obtain data from.
IOException
- if an I/O error occurs.public static double[][] readDoubleData2D(File file) throws IOException
readDoubleData2D
to
obtain a matrix of double-precision values from
the file.
file
- the file object representing the file to read.
IOException
- if an I/O error occurs.public static double[][] readDoubleData2D(String file) throws IOException
readDoubleData2D
to
obtain a matrix of double-precision values from
the file.
file
- the name of the file to read.
IOException
- if an I/O error occurs.public static int[][] readIntData2D(Reader input) throws IOException
readDoubleData2D
,
for reading integers.
input
- the reader to obtain data from.
IOException
- if an I/O error occurs.public static int[][] readIntData2D(File file) throws IOException
readDoubleData2D
,
for reading integers.
file
- the file object represented to file to read.
IOException
- if an I/O error occurs.public static int[][] readIntData2D(String file) throws IOException
readDoubleData2D
,
for reading integers.
file
- the name of the file to read.
IOException
- if an I/O error occurs.
|
SSJ V. 1.2.5. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |