uk.ac.roe.antigen.utils
Class CopyableFile

java.lang.Object
  extended byjava.io.File
      extended byuk.ac.roe.antigen.utils.CopyableFile
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class CopyableFile
extends java.io.File

A file that is able to be copied - you'd think this would be straightforward wouldn't you?

Author:
jdt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
CopyableFile(java.io.File arg0)
           
CopyableFile(java.io.File arg0, java.lang.String arg1)
           
CopyableFile(java.lang.String arg0)
           
CopyableFile(java.lang.String arg0, java.lang.String arg1)
           
CopyableFile(java.net.URI arg0)
           
 
Method Summary
 void copyTo(java.io.File newLocation)
          Copy this file or directory to the given new location
static void main(java.lang.String[] args)
           
 boolean recursivelyDelete()
          You'd think this would be obvious....
 
Methods inherited from class java.io.File
canRead, canWrite, compareTo, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getName, getParent, getParentFile, getPath, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setLastModified, setReadOnly, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CopyableFile

public CopyableFile(java.lang.String arg0)
Parameters:
arg0 -

CopyableFile

public CopyableFile(java.io.File arg0,
                    java.lang.String arg1)
Parameters:
arg0 -
arg1 -

CopyableFile

public CopyableFile(java.io.File arg0)

CopyableFile

public CopyableFile(java.lang.String arg0,
                    java.lang.String arg1)
Parameters:
arg0 -
arg1 -

CopyableFile

public CopyableFile(java.net.URI arg0)
Parameters:
arg0 -
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.io.IOException
Throws:
java.io.IOException

copyTo

public void copyTo(java.io.File newLocation)
            throws java.io.IOException
Copy this file or directory to the given new location

Parameters:
newLocation -
Throws:
java.io.IOException

recursivelyDelete

public boolean recursivelyDelete()
You'd think this would be obvious.... Remove a directory, even if not empty



Copyright © 2005 Institute for Astronomy, Royal Observatory of Edinburgh. All Rights Reserved.