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:
readin classInputStream
-
read
public int read(byte[] buf) Description copied from interface:LineInputStreamRead some bytes.- Specified by:
readin interfaceLineInputStream- Overrides:
readin 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:LineInputStreamRead everything up to the next end-of-line. Does not include the end of line, though it is consumed from the input.- Specified by:
readLinein interfaceLineInputStream- Returns:
- All next up to the next end of line.
- Throws:
IOException
-
clearEOL
Description copied from interface:LineInputStreamRead everything up to and including the end of line.- Specified by:
clearEOLin interfaceLineInputStream- Throws:
IOException
-
toString
-