mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 11:19:04 +01:00
Removed unused classes.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user