org.mbari.oasis
Class DuplicateRemover

java.lang.Object
  extended byorg.mbari.oasis.DuplicateRemover

public class DuplicateRemover
extends java.lang.Object

Removes duplicate data lines and sorts the data from OASIS data files.

If the file does not contain duplicate or unsorted daa it will not be rewritten.

Version:
28 Mar 2001
Author:
Brian Schlining

Constructor Summary
DuplicateRemover(java.io.File f)
           
DuplicateRemover(java.lang.String f)
           
 
Method Summary
static void main(java.lang.String[] args)
          Use as: org.mbari.oasis.DuplicateRemover

Inputs: filename = the name of the file to sort and remove duplicates from
dataDirectory = A directory of oasis data files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DuplicateRemover

public DuplicateRemover(java.lang.String f)
                 throws java.io.IOException
Parameters:
f - Name of the oasis data file to clean up.
Throws:
java.io.IOException - Thrown if unalbe to read the file. Will also be thrown if the file needs to be rewriten but write permission is not available.

DuplicateRemover

public DuplicateRemover(java.io.File f)
                 throws java.io.IOException
Parameters:
f - Name of the oasis data file to clean up.
Method Detail

main

public static void main(java.lang.String[] args)
Use as: org.mbari.oasis.DuplicateRemover

Inputs: filename = the name of the file to sort and remove duplicates from
dataDirectory = A directory of oasis data files. Duplicate Remover will loop through all files in the directory and clean them.