|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jlab.coda.cMsg.FileHelper
public class FileHelper
Utilities for File manipulation. More information about this class is available from ostermiller.org.
Constructor Summary | |
---|---|
FileHelper()
|
Method Summary | |
---|---|
static void |
move(java.io.File from,
java.io.File to)
Move a file from one location to another. |
static void |
move(java.io.File from,
java.io.File to,
boolean overwrite)
Move a file from one location to another. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileHelper()
Method Detail |
---|
public static void move(java.io.File from, java.io.File to) throws java.io.IOException
from
- file which should be moved.to
- desired destination of the file.
java.io.IOException
- if an error occurs.public static void move(java.io.File from, java.io.File to, boolean overwrite) throws java.io.IOException
from
- file which should be moved.to
- desired destination of the file.overwrite
- If false, an exception will be thrown rather than overwrite a file.
java.io.IOException
- if an error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |