private class SnapShooter.FileCopier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private byte[] |
buffer |
private static int |
DEFAULT_BUFFER_SIZE |
private IndexDeletionPolicyWrapper |
delPolicy |
private org.apache.lucene.index.IndexCommit |
indexCommit |
Constructor and Description |
---|
FileCopier(IndexDeletionPolicyWrapper delPolicy,
org.apache.lucene.index.IndexCommit commit) |
Modifier and Type | Method and Description |
---|---|
void |
copyFile(java.io.File source,
java.io.File destination,
boolean preserveFileDate) |
void |
copyFiles(java.util.Collection<java.lang.String> files,
java.io.File destDir) |
private static final int DEFAULT_BUFFER_SIZE
private byte[] buffer
private org.apache.lucene.index.IndexCommit indexCommit
private IndexDeletionPolicyWrapper delPolicy
public FileCopier(IndexDeletionPolicyWrapper delPolicy, org.apache.lucene.index.IndexCommit commit)
public void copyFiles(java.util.Collection<java.lang.String> files, java.io.File destDir) throws java.io.IOException
java.io.IOException
public void copyFile(java.io.File source, java.io.File destination, boolean preserveFileDate) throws java.io.IOException
java.io.IOException