things.thinger.io
Class FileSystemTools

java.lang.Object
  extended by things.thinger.io.FileSystemTools

public class FileSystemTools
extends java.lang.Object

File System tools. Static tools for all types of file systems.

Version:
1.0

Version History

EPG - Initial - 11 JUN05
 
Author:
Erich P. Gatejen

Field Summary
static java.lang.String ROOT
          This is the assumed mount root for any filesystem.
 
Constructor Summary
FileSystemTools()
           
 
Method Summary
static java.lang.String normalizePath(java.lang.String in)
          This will normalize the path to make sure it doesn't refer to non-filesystem paths.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ROOT

public static final java.lang.String ROOT
This is the assumed mount root for any filesystem.

See Also:
Constant Field Values
Constructor Detail

FileSystemTools

public FileSystemTools()
Method Detail

normalizePath

public static java.lang.String normalizePath(java.lang.String in)
                                      throws ThingsException
This will normalize the path to make sure it doesn't refer to non-filesystem paths. A null will result in a root path. Any other exceptions will propagate.

Parameters:
in - the path to normalize
Returns:
the normalize path
Throws:
java.lang.Exception
ThingsException


Things.