Package com.danga.MemCached
Class ByteBufArrayInputStream
java.lang.Object
java.io.InputStream
com.danga.MemCached.ByteBufArrayInputStream
- All Implemented Interfaces:
LineInputStream
,Closeable
,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Field Details
-
bufs
-
currentBuf
private int currentBuf
-
-
Constructor Details
-
Method Details
-
read
public int read()- Specified by:
read
in classInputStream
-
read
public int read(byte[] buf) Description copied from interface:LineInputStream
Read some bytes.- Specified by:
read
in interfaceLineInputStream
- Overrides:
read
in classInputStream
- Parameters:
buf
- The buffer into which read.- Returns:
- The number of bytes actually read, or -1 if none could be read.
-
readLine
Description copied from interface:LineInputStream
Read everything up to the next end-of-line. Does not include the end of line, though it is consumed from the input.- Specified by:
readLine
in interfaceLineInputStream
- Returns:
- All next up to the next end of line.
- Throws:
IOException
-
clearEOL
Description copied from interface:LineInputStream
Read everything up to and including the end of line.- Specified by:
clearEOL
in interfaceLineInputStream
- Throws:
IOException
-
toString
-