org.apache.james.mime4j.io
public class LineReaderInputStreamAdaptor extends LineReaderInputStream
InputStream
used by the MIME parser to detect whether the
underlying data stream was used (read from) and whether the end of the
stream was reached.in
Constructor and Description |
---|
LineReaderInputStreamAdaptor(InputStream is) |
LineReaderInputStreamAdaptor(InputStream is,
int maxLineLen) |
Modifier and Type | Method and Description |
---|---|
boolean |
eof() |
boolean |
isUsed() |
int |
read() |
int |
read(byte[] b,
int off,
int len) |
int |
readLine(ByteArrayBuffer dst)
Reads one line of text into the given
ByteArrayBuffer . |
String |
toString() |
available, close, mark, markSupported, read, reset, skip
public LineReaderInputStreamAdaptor(InputStream is, int maxLineLen)
public LineReaderInputStreamAdaptor(InputStream is)
public int read() throws IOException
read
in class FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public int readLine(ByteArrayBuffer dst) throws IOException
LineReaderInputStream
ByteArrayBuffer
.readLine
in class LineReaderInputStream
dst
- Destination-1
if the end of
the stream has been reached.IOException
- in case of an I/O error.public boolean eof()
public boolean isUsed()
Copyright © 2004–2014 The Apache Software Foundation. All rights reserved.