|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mbari.oasis.OasisFileCoallator
Combine files created by Bob Herlein's extract program into a single data file. This version replaces CoallateOasisFiles and can be called as a static method. This class is designed to read a directory contianing files using 'yyddd' or 'yyyyddd' naming schemes and combine them into a single file. It grabs the header of the first file in the sequence and adds it to the output file. The file created with this should contain identical data as the source files with the exception that a column of years is added as the last column of the data file.
| Method Summary | |
static void |
coallate(java.io.File out)
Combine files created by extract. |
static void |
coallate(java.io.File outFile,
java.io.File inPath)
Combine files created by extract. |
static void |
coallate(java.lang.String outfile)
Combine files created by extract. |
static void |
coallate(java.lang.String outfile,
java.lang.String inFilepath)
Combine files created by extract. |
static int |
getYear(java.lang.String file)
Extract the year from filenames of types 'yyddd' or 'yyyydd'. |
static void |
main(java.lang.String[] args)
Allows the user to call this class from the command line Type 'java org.mbari.oasis.OasisFileCoallator' for help. |
static java.lang.String[] |
sortFiles(java.text.Collator collator,
java.lang.String[] strArray)
Sorts the array of filename by name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static final void coallate(java.io.File outFile,
java.io.File inPath)
throws java.io.IOException
inPath - The location of the data files to be combined.
java.io.IOException
public static final void coallate(java.io.File out)
throws java.io.IOException
java.io.IOException
public static final void coallate(java.lang.String outfile)
throws java.io.IOException
outfile - The file to be created
java.io.IOException
public static final void coallate(java.lang.String outfile,
java.lang.String inFilepath)
throws java.io.IOException
outfile - The file to be created
java.io.IOExceptionpublic static int getYear(java.lang.String file)
file - The name of the file
public static java.lang.String[] sortFiles(java.text.Collator collator,
java.lang.String[] strArray)
public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||