public class FileHelper extends Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_COPY_BUFFER_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areInSync(File source,
File destination) |
static boolean |
delete(File file)
Attempts to delete a file.
|
static void |
synchronize(File source,
File destination,
boolean smart) |
static void |
synchronize(File source,
File destination,
boolean smart,
long chunkSize) |
public static final long DEFAULT_COPY_BUFFER_SIZE
public static boolean areInSync(File source, File destination) throws IOException
IOExceptionpublic static void synchronize(File source, File destination, boolean smart) throws IOException
IOExceptionpublic static void synchronize(File source, File destination, boolean smart, long chunkSize) throws IOException
IOExceptionpublic static boolean delete(File file)
file - the file or directory to be deletedfalse if it wasn't possible to delete all content which is a common problem on Windows systems.Copyright © 2006–2014 Hibernate. All rights reserved.