Added Consumer support to Writer, to avoid redundant copying.

This commit is contained in:
akwizgran
2011-09-28 18:47:24 +01:00
parent 9c2e3917bf
commit a8b96f11fd
12 changed files with 134 additions and 97 deletions

View File

@@ -416,10 +416,6 @@ public class ReaderImplTest extends TestCase {
out.write(b);
}
public void write(byte[] b) throws IOException {
out.write(b);
}
public void write(byte[] b, int off, int len) throws IOException {
out.write(b, off, len);
}