@Test public void testBasicReadingByOneByte() throws IOException { String text = "Line 1\r\nLine 2\r\n--boundary\r\n" + "Line 3\r\nLine 4\r\n--boundary--"; BufferedLineReaderInputStream buffer = create(text, 4096); MimeBoundaryInputStream mime1 = new MimeBoundaryInputStream(buffer, "boundary"); Assert.assertEquals("Line 1\r\nLine 2", readByOneByte(mime1)); Assert.assertFalse(mime1.isLastPart()); MimeBoundaryInputStream mime2 = new MimeBoundaryInputStream(buffer, "boundary"); Assert.assertEquals("Line 3\r\nLine 4", readByOneByte(mime2)); Assert.assertTrue(mime2.isLastPart()); }
public boolean isLastPart() { return lastPart; }
MimeBoundaryInputStream extends LineReaderInputStream { public boolean isLastPart() { return lastPart; } }
MimeBoundaryInputStream extends LineReaderInputStream { public boolean isLastPart() { return lastPart; } MimeBoundaryInputStream(
            final BufferedLineReaderInputStream inbuffer,
            final String boundary,
            final boolean strict);  MimeBoundaryInputStream(
            final BufferedLineReaderInputStream inbuffer,
            final String boundary); }
MimeBoundaryInputStream extends LineReaderInputStream { public boolean isLastPart() { return lastPart; } MimeBoundaryInputStream(
            final BufferedLineReaderInputStream inbuffer,
            final String boundary,
            final boolean strict);  MimeBoundaryInputStream(
            final BufferedLineReaderInputStream inbuffer,
            final String boundary); @Override void close(); @Override boolean markSupported(); boolean readAllowed(); @Override int read(); @Override int read(byte[] b, int off, int len); @Override int readLine(final ByteArrayBuffer dst); boolean isEmptyStream(); boolean isFullyConsumed(); boolean isLastPart(); boolean eof(); @Override String toString(); @Override boolean unread(ByteArrayBuffer buf); }
MimeBoundaryInputStream extends LineReaderInputStream { public boolean isLastPart() { return lastPart; } MimeBoundaryInputStream(
            final BufferedLineReaderInputStream inbuffer,
            final String boundary,
            final boolean strict);  MimeBoundaryInputStream(
            final BufferedLineReaderInputStream inbuffer,
            final String boundary); @Override void close(); @Override boolean markSupported(); boolean readAllowed(); @Override int read(); @Override int read(byte[] b, int off, int len); @Override int readLine(final ByteArrayBuffer dst); boolean isEmptyStream(); boolean isFullyConsumed(); boolean isLastPart(); boolean eof(); @Override String toString(); @Override boolean unread(ByteArrayBuffer buf);  }