org.mbari.util
Class FileUtil

java.lang.Object
  extended byorg.mbari.util.FileUtil

public class FileUtil
extends java.lang.Object

Utilities for working with files.



MBARI provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of the Monterey Bay Aquarium Research Institute to assist in its use, correction, modification, or enhancement. This information should not be published or distributed to third parties without specific written permission from MBARI.


Copyright 2002 MBARI.
MBARI Proprietary Information. All rights reserved.


$Log: FileUtil.java,v $ Revision 1.1 2002/07/02 21:51:30 brian Coallating shared files into the mbari.jar project Revision 1.5 2002/02/08 00:55:54 brian Wokring on creating a tool to add rov altitude. utm coords, bathymetry and depth to ROV navigation files. The tools can be used iteratively so that if the ROV data is outside a grid you, it will fill in what it can but allow the user to rerun the data on another grid. THen it just fills in values that are missing. Revision 1.4 2002/01/30 00:23:56 brian Added comments to all classes and methods. Tested the accuracy of AsciiRasterGridReader and AsciiRasterGridWriter. Also checked the the GridUtil was populating the spatial grids correctly and accurately. The data files generated matched up perfectly with the orginal text files. Also implemented an RovAltitudeFilter class to encapsulate different filtering methods.


Version:
: $Revision: 1.1 $
Author:
: $Author: brian $

Method Summary
static java.io.File[] getDirRoots()
          List the available root directories.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDirRoots

public static final java.io.File[] getDirRoots()
List the available root directories. On Windows, a number of roots may exist (A:\, b:\ c:\, etc.). The mechanism provided by Sun lists all roots, even if they don't exist. This method only returns an array of files for those roots that actually exist.

Returns:
A list of roots that exist on a computer.