public final class ByteBufArrayInputStream extends java.io.InputStream implements LineInputStream
| Modifier and Type | Field and Description |
|---|---|
private java.nio.ByteBuffer[] |
bufs |
private int |
currentBuf |
| Constructor and Description |
|---|
ByteBufArrayInputStream(java.nio.ByteBuffer[] bufs) |
ByteBufArrayInputStream(java.util.List<java.nio.ByteBuffer> bufs) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearEOL()
Read everything up to and including the end of line.
|
int |
read() |
int |
read(byte[] buf)
Read some bytes.
|
java.lang.String |
readLine()
Read everything up to the next end-of-line.
|
java.lang.String |
toString() |
public ByteBufArrayInputStream(java.util.List<java.nio.ByteBuffer> bufs)
throws java.lang.Exception
java.lang.Exceptionpublic ByteBufArrayInputStream(java.nio.ByteBuffer[] bufs)
throws java.lang.Exception
java.lang.Exceptionpublic int read()
read in class java.io.InputStreampublic int read(byte[] buf)
LineInputStreamread in interface LineInputStreamread in class java.io.InputStreambuf - The buffer into which read.public java.lang.String readLine()
throws java.io.IOException
LineInputStreamreadLine in interface LineInputStreamjava.io.IOExceptionpublic void clearEOL()
throws java.io.IOException
LineInputStreamclearEOL in interface LineInputStreamjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2005 - greg whalin