Removable drive finders for Windows, Mac and Linux (untested).

This commit is contained in:
akwizgran
2011-10-04 21:04:22 +01:00
parent 9c48ad032f
commit f02e6b3f89
10 changed files with 378 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
package net.sf.briar.plugins.file;
import java.io.File;
public class TestFilePlugin extends FilePlugin {
private final File outputDir;
private final long capacity;
public TestFilePlugin(File outputDir, long capacity) {
this.outputDir = outputDir;
this.capacity = capacity;
}
@Override
protected File chooseOutputDirectory() {
return outputDir;
}
@Override
protected void writerFinished(File f) {
// Nothing to do
}
@Override
protected long getCapacity(String path) {
return capacity;
}
}