Skip to content
Snippets Groups Projects
Commit 775d76d0 authored by akwizgran's avatar akwizgran
Browse files

Removed unused classes.

parent 6160a5f5
No related branches found
No related tags found
No related merge requests found
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();
}
}
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();
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment