org.hibernate.search.util
Class FileHelper
java.lang.Object
org.hibernate.search.util.FileHelper
public abstract class FileHelper
- extends Object
Utility class for synchronizing files/directories.
- Author:
- Emmanuel Bernard, Sanne Grinovero, Hardy Ferentschik
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEFAULT_COPY_BUFFER_SIZE
public static final long DEFAULT_COPY_BUFFER_SIZE
- See Also:
- Constant Field Values
FileHelper
public FileHelper()
areInSync
public static boolean areInSync(File source,
File destination)
throws IOException
- Throws:
IOException
synchronize
public static void synchronize(File source,
File destination,
boolean smart)
throws IOException
- Throws:
IOException
synchronize
public static void synchronize(File source,
File destination,
boolean smart,
long chunkSize)
throws IOException
- Throws:
IOException
delete
public static void delete(File file)