CharBuffer cb = CharBuffer.allocate(numChars);
rdin.read(cb);
fin.close();
return cb.flip().toString();
}
public void testBasicDecoding() throws Exception {
ReadableByteChannel channel = new ReadableByteChannelMockup(
new String[] {"stuff;", "more stuff"}, "US-ASCII");