Removed test classes' dependency on ByteArray{Input,Output)Stream.

This commit is contained in:
akwizgran
2011-09-23 16:36:07 +01:00
parent 2a92ed0056
commit 4b0e91f52c
2 changed files with 4 additions and 6 deletions

View File

@@ -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);
}

View File

@@ -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;
}