mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Removed test classes' dependency on ByteArray{Input,Output)Stream.
This commit is contained in:
@@ -1,16 +1,15 @@
|
||||
package net.sf.briar.transport.batch;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.FilterInputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
import net.sf.briar.api.transport.batch.BatchTransportReader;
|
||||
|
||||
class ByteArrayBatchTransportReader extends FilterInputStream
|
||||
class TestBatchTransportReader extends FilterInputStream
|
||||
implements BatchTransportReader {
|
||||
|
||||
ByteArrayBatchTransportReader(ByteArrayInputStream in) {
|
||||
TestBatchTransportReader(InputStream in) {
|
||||
super(in);
|
||||
}
|
||||
|
||||
@@ -1,18 +1,17 @@
|
||||
package net.sf.briar.transport.batch;
|
||||
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.FilterOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
|
||||
import net.sf.briar.api.transport.batch.BatchTransportWriter;
|
||||
|
||||
class ByteArrayBatchTransportWriter extends FilterOutputStream
|
||||
class TestBatchTransportWriter extends FilterOutputStream
|
||||
implements BatchTransportWriter {
|
||||
|
||||
private int capacity;
|
||||
|
||||
ByteArrayBatchTransportWriter(ByteArrayOutputStream out, int capacity) {
|
||||
TestBatchTransportWriter(OutputStream out, int capacity) {
|
||||
super(out);
|
||||
this.capacity = capacity;
|
||||
}
|
||||
Reference in New Issue
Block a user