LineReaderInputStream instream = new MimeBoundaryInputStream(inbuffer, "1234");
ByteArrayBuffer linebuf = new ByteArrayBuffer(8);
for (String teststr : teststrs) {
linebuf.clear();
instream.readLine(linebuf);
String s = new String(linebuf.toByteArray(), "US-ASCII");
assertEquals(teststr, s);
}
assertEquals(-1, instream.readLine(linebuf));
assertEquals(-1, instream.readLine(linebuf));