Removed unused classes.

This commit is contained in:
akwizgran
2011-10-05 18:54:49 +01:00
parent 6160a5f56c
commit 775d76d040
2 changed files with 0 additions and 58 deletions

View File

@@ -1,24 +0,0 @@
package net.sf.briar.transport.batch;
import java.io.IOException;
import java.io.InputStream;
import net.sf.briar.api.transport.batch.BatchTransportReader;
class TestBatchTransportReader implements BatchTransportReader {
private final InputStream in;
TestBatchTransportReader(InputStream in) {
this.in = in;
}
public InputStream getInputStream() {
return in;
}
public void dispose() throws IOException {
// The input stream may have been left open
in.close();
}
}

View File

@@ -1,34 +0,0 @@
package net.sf.briar.transport.batch;
import java.io.IOException;
import java.io.OutputStream;
import net.sf.briar.api.transport.batch.BatchTransportWriter;
class TestBatchTransportWriter implements BatchTransportWriter {
private final OutputStream out;
private final int capacity;
TestBatchTransportWriter(OutputStream out, int capacity) {
this.out = out;
this.capacity = capacity;
}
public long getCapacity() {
return capacity;
}
public OutputStream getOutputStream() {
return out;
}
public void finish() throws IOException {
// Nothing to do
}
public void dispose() throws IOException {
// The output stream may have been left open
out.close();
}
}