public class RedisInputStream
extends java.io.FilterInputStream
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
buf |
protected int |
count |
protected int |
limit |
| Constructor and Description |
|---|
RedisInputStream(java.io.InputStream in) |
RedisInputStream(java.io.InputStream in,
int size) |
| Modifier and Type | Method and Description |
|---|---|
private void |
ensureFill()
This methods assumes there are required bytes to be read.
|
int |
read(byte[] b,
int off,
int len) |
byte |
readByte() |
int |
readIntCrLf() |
java.lang.String |
readLine() |
byte[] |
readLineBytes() |
private byte[] |
readLineBytesSlowly()
Slow path in case a line of bytes cannot be read in one #fill() operation.
|
long |
readLongCrLf() |
public RedisInputStream(java.io.InputStream in,
int size)
public RedisInputStream(java.io.InputStream in)
public byte readByte()
throws JedisConnectionException
JedisConnectionExceptionpublic java.lang.String readLine()
public byte[] readLineBytes()
private byte[] readLineBytesSlowly()
public int readIntCrLf()
public long readLongCrLf()
public int read(byte[] b,
int off,
int len)
throws JedisConnectionException
read in class java.io.FilterInputStreamJedisConnectionExceptionprivate void ensureFill()
throws JedisConnectionException
JedisConnectionException