public class POSTTableReader extends java.lang.Object implements FTableReader
Modified by: Joseph A. Huwaldt
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
kDescription |
static java.lang.String |
kExtension |
kEOFErrMsg, kExpExponentErrMsg, kExpNumberErrMsg, kExpWordErrMsg, kInvNumBPErrMsg, MAYBE, NO, YES
Constructor and Description |
---|
POSTTableReader() |
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.
|
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)
Method that reads in POST table formatted data
from the specified input stream and returns that data as an
FTableDatabase object.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
void |
write(java.io.OutputStream output,
FTableDatabase tables)
Method for writing out all the data stored in the specified
list of FloatTable objects to the specified output stream in POST table format.
|
public static final java.lang.String kExtension
public static final java.lang.String kDescription
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getExtension()
getExtension
in interface FTableReader
public int canReadData(java.lang.String name, java.io.InputStream input) throws java.io.IOException
canReadData
in interface FTableReader
name
- The name of the file.input
- An input stream containing the data to be read.java.io.IOException
public boolean canWriteData()
canWriteData
in interface FTableReader
public FTableDatabase read(java.io.InputStream input) throws java.io.IOException
read
in interface FTableReader
input
- An input stream containing the POST table formatted data.java.io.IOException
- If there is a problem reading the specified stream.public void write(java.io.OutputStream output, FTableDatabase tables) throws java.io.IOException
write
in interface FTableReader
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.