public interface FTableReader
Modified by: Joseph A. Huwaldt
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
kEOFErrMsg |
static java.lang.String |
kExpExponentErrMsg |
static java.lang.String |
kExpNumberErrMsg |
static java.lang.String |
kExpWordErrMsg |
static java.lang.String |
kInvNumBPErrMsg |
static int |
MAYBE
Constant indicating that a reader might be able to read a specified file,
but can't determine for sure.
|
static int |
NO
Constant indicating that a reader can not read a specified file.
|
static int |
YES
Constant indicating that a reader can certainly read a specified file.
|
Modifier and Type | Method and Description |
---|---|
int |
canReadData(java.lang.String name,
java.io.InputStream input)
Method that determines if this reader can read data from the specified input stream.
|
boolean |
canWriteData()
Returns true if this class can write at least some data in the format supported by
this class.
|
java.lang.String |
getExtension()
Returns the preferred file extension (not including the ".") for files of
this reader's type.
|
FTableDatabase |
read(java.io.InputStream input)
Interface for reading in data from an input stream
and returning that data as a list of DataSet objects.
|
void |
write(java.io.OutputStream output,
FTableDatabase tables)
Interface for writing out all the data stored in the specified
list of FloatTable objects to the specified output stream.
|
static final int NO
static final int YES
static final int MAYBE
static final java.lang.String kEOFErrMsg
static final java.lang.String kExpWordErrMsg
static final java.lang.String kExpNumberErrMsg
static final java.lang.String kExpExponentErrMsg
static final java.lang.String kInvNumBPErrMsg
java.lang.String getExtension()
int canReadData(java.lang.String name, java.io.InputStream input) throws java.io.IOException
name
- The name of the file.input
- An input stream containing the data to be read.java.io.IOException
boolean canWriteData()
FTableDatabase read(java.io.InputStream input) throws java.io.IOException
input
- An input stream containing the data to be read.java.io.IOException
- If there is a problem reading the specified stream.void write(java.io.OutputStream output, FTableDatabase tables) throws java.io.IOException
output
- The output stream to which the data is to be written.tables
- The list of FloatTable objects to be written out.java.io.IOException
- If there is a problem writing to the specified stream.