org.mbari.io
Class OasisFileReader

java.lang.Object
  extended byorg.mbari.io.FlatFileReader
      extended byorg.mbari.io.OasisFileReader

public class OasisFileReader
extends FlatFileReader

Reads files created by Bob Herlein's extract program and combined using concat.awk or OasisFileCoallator.java into a double array


Field Summary
 
Fields inherited from class org.mbari.io.FlatFileReader
data, file
 
Constructor Summary
OasisFileReader(java.io.File f)
           
OasisFileReader(java.lang.String s)
          Constructor makes a quick pass through the file to intialize memory.
 
Method Summary
 long[] getTime()
          Accessor method to get the time stamp for each line of data in the data array
 void readFile()
          Read a data file.
 
Methods inherited from class org.mbari.io.FlatFileReader
countColumns, countRows, getColumn, getData, getData, getFilename, ID, main, setData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OasisFileReader

public OasisFileReader(java.lang.String s)
                throws java.io.IOException
Constructor makes a quick pass through the file to intialize memory. To read the file call the readFile method.

Parameters:
s - The name of the file to read

OasisFileReader

public OasisFileReader(java.io.File f)
                throws java.io.IOException
Parameters:
f - File object representing the file to be read
Method Detail

getTime

public long[] getTime()
Accessor method to get the time stamp for each line of data in the data array


readFile

public void readFile()
              throws java.io.IOException
Read a data file. Rarses data that are seperated by white spaces or tabs

Overrides:
readFile in class FlatFileReader
Throws:
java.io.IOException