class DirectoryMover extends Object
Modifier and Type | Field and Description |
---|---|
private static FileFilter |
ALL_FILES |
private FileFilter |
filter |
private File |
source |
private File |
target |
Constructor and Description |
---|
DirectoryMover(File source,
File target) |
DirectoryMover(File source,
File target,
FileFilter filter) |
private static final FileFilter ALL_FILES
private final File source
private final File target
private FileFilter filter
public DirectoryMover(File source, File target, FileFilter filter)
public void move() throws IOException
IOException
private void move(File sourceDir, File targetDir) throws IOException
IOException
private static void copyFile(File in, File out) throws IOException
IOException