de.matthias_burbach.util
Class FileUtils

java.lang.Object
  extended byde.matthias_burbach.util.FileUtils

public class FileUtils
extends java.lang.Object

Author:
Matthias Burbach

Constructor Summary
FileUtils()
           
 
Method Summary
private static void abort(java.lang.String msg)
          A convenience method to throw an exception
static void copy(java.lang.String from_name, java.lang.String to_name)
          Performs a file copy.
static void delete(java.lang.String file)
           
static java.lang.String getNameWithoutPath(java.lang.String pathAndName)
           
static java.lang.String getPathWithoutName(java.lang.String pathAndName)
           
static boolean isValidFile(java.lang.String filePathAndName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtils

public FileUtils()
Method Detail

getPathWithoutName

public static java.lang.String getPathWithoutName(java.lang.String pathAndName)

getNameWithoutPath

public static java.lang.String getNameWithoutPath(java.lang.String pathAndName)

isValidFile

public static boolean isValidFile(java.lang.String filePathAndName)
Parameters:
filePathAndName -
Returns:
true iff the file exists and is readable

delete

public static void delete(java.lang.String file)

copy

public static void copy(java.lang.String from_name,
                        java.lang.String to_name)
                 throws java.io.IOException
Performs a file copy. Before copying the file, however, it performs a lot of tests to make sure everything is as it should be. Copyright (c) 1997 by David Flanagan

Throws:
java.io.IOException

abort

private static void abort(java.lang.String msg)
                   throws java.io.IOException
A convenience method to throw an exception

Throws:
java.io.IOException