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.Exception
public ByteBufArrayInputStream(java.nio.ByteBuffer[] bufs) throws java.lang.Exception
java.lang.Exception
public int read()
read
in class java.io.InputStream
public int read(byte[] buf)
LineInputStream
read
in interface LineInputStream
read
in class java.io.InputStream
buf
- The buffer into which read.public java.lang.String readLine() throws java.io.IOException
LineInputStream
readLine
in interface LineInputStream
java.io.IOException
public void clearEOL() throws java.io.IOException
LineInputStream
clearEOL
in interface LineInputStream
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - greg whalin