|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mbari.oasis.HRDataCleaner
Converts OASIS hydrorad data files to binary. The binary can then be used by hobilabs or other processing programs. Useful class for taking the hex dump of Hydorad data that the Oasis can transmits and converting it back to binary. This class also splits out different instruments into different files and removes extraneous information. It currently works only with Oasis files...it chops off the first token of each line. Typically this is the Oasis time. However, it should be easy enough to modify this class if it needs to be applied to non-oasis files. This class will loop through ALL files if a directory is specified. It also accepts individual files as arguments.
AsciiHexReader| Constructor Summary | |
HRDataCleaner(java.io.File infile,
java.io.File dest)
This form of constructor will not append a prefix on to the output files |
|
HRDataCleaner(java.io.File infile,
java.io.File dest,
java.lang.String prefix)
The constructor doesn't check for read write access to any files. |
|
HRDataCleaner(java.lang.String infile,
java.lang.String dest)
This form of constructor will not append a prefix on to the output files |
|
HRDataCleaner(java.lang.String infile,
java.lang.String dest,
java.lang.String prefix)
|
|
| Method Summary | |
static void |
main(java.lang.String[] args)
HRDataCleaner can be run from the command line as well as integrated into other programs. |
void |
seperate()
This method will start the processing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HRDataCleaner(java.io.File infile,
java.io.File dest,
java.lang.String prefix)
throws java.io.IOException
infile - A file object referering to the fiel or directory of files
containing data to seperatedest - The directory to write the resulting files to.prefix - The prefix to prepend to the output files name
java.io.IOException - Thrown is errors reading either infile or dest occurs
public HRDataCleaner(java.lang.String infile,
java.lang.String dest,
java.lang.String prefix)
throws java.io.IOException
infile - A file object referering to the file or directory of files
containing data to seperatedest - The directory to write the resulting files to.prefix - The prefix to prepend to the output files name
public HRDataCleaner(java.lang.String infile,
java.lang.String dest)
throws java.io.IOException
infile - A file object referering to the fiel or directory of files
containing data to seperatedest - The directory to write the resulting files to.
public HRDataCleaner(java.io.File infile,
java.io.File dest)
throws java.io.IOException
infile - A file object referering to the fiel or directory of files
containing data to seperatedest - The directory to write the resulting files to.| Method Detail |
public void seperate()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
args - Command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||