|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mbari.hobilabs.HRParser
HRParser is the main data parser engine for Decoders and Converters in the
org.mbari.hobilabs.hr parckage. Most decoders in this package layer some
functionality on top of HRParser but all user this parsing engine.
HRParser is used to parse a binary stream of data from a Hobilabs hydrorad
instrument. Data collected using MBARI's OASIS controller will be in ASCII
hexadecimal format and will need to be converted back to binary (using
AsciiHexInputStream)
A typical use of this class:
HRParser p = new HRParser( ... )
p.parseFile();
HRPacket[] data = p.get();
| Constructor Summary | |
HRParser(java.io.DataInputStream in)
|
|
HRParser(java.io.InputStream in)
HRParser will accept any InputStream. |
|
| Method Summary | |
HRPacket[] |
get()
This method is used to get the data after it's been parsed |
void |
parse()
Call this method to start the actual processing. |
void |
parseFile()
Deprecated. Use parse() instead |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HRParser(java.io.InputStream in)
throws java.io.IOException
in - InputStream from the file to parse
public HRParser(java.io.DataInputStream in)
throws java.io.IOException
in - A DataInputStream from the file to parse| Method Detail |
public void parseFile()
throws java.io.IOException
java.io.IOException
public void parse()
throws java.io.IOException
java.io.IOExceptionpublic HRPacket[] get()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||