|
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 umontreal.iro.lecuyer.util.io.BinaryDataReader
public class BinaryDataReader
Binary data reader. This class implements a module for importing data written
with BinaryDataWriter
.
Constructor Summary | |
---|---|
BinaryDataReader(File file)
Opens the specified file for reading. |
|
BinaryDataReader(InputStream inputStream)
Opens the specified input stream for reading. |
|
BinaryDataReader(String filename)
Opens the file with the specified name for reading. |
|
BinaryDataReader(URL url)
Opens the file at the specified url for reading. |
Method Summary | |
---|---|
void |
close()
Closes the file. |
boolean |
dataPending()
Returns true if there remains data to be read. |
DataField |
readField(String label)
Reads the first field labeled as label. |
DataField |
readNextField()
Reads the next available field. |
void |
reset()
Reopens the file (does not work with the constructor that takes an input stream). |
Methods inherited from class umontreal.iro.lecuyer.util.io.AbstractDataReader |
---|
readAllFields, readAllNextFields, readDouble, readDoubleArray, readDoubleArray2D, readFloat, readFloatArray, readFloatArray2D, readInt, readIntArray, readIntArray2D, readString, readStringArray, readStringArray2D |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BinaryDataReader(String filename) throws IOException
filename
- name of the file to read the data from
IOException
public BinaryDataReader(URL url) throws IOException
url
- url of the file to read the data from
IOException
public BinaryDataReader(File file) throws IOException
file
- file to read the data from
IOException
public BinaryDataReader(InputStream inputStream) throws IOException
readField
might will not be able to read
a field that is before the current reading position.
inputStream
- input stream to read the data from
IOException
Method Detail |
---|
public DataField readNextField() throws IOException
IOException
public DataField readField(String label) throws IOException
IOException
public void reset() throws IOException
IOException
public boolean dataPending() throws IOException
IOException
public void close() throws IOException
IOException
|
SSJ V. 2.6.2. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |