redis.clients.util
Class RedisInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by redis.clients.util.RedisInputStream
All Implemented Interfaces:
Closeable

public class RedisInputStream
extends FilterInputStream


Field Summary
protected  byte[] buf
           
protected  int count
           
protected  int limit
           
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
RedisInputStream(InputStream in)
           
RedisInputStream(InputStream in, int size)
           
 
Method Summary
 int read(byte[] b, int off, int len)
           
 byte readByte()
           
 String readLine()
           
 
Methods inherited from class java.io.FilterInputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buf

protected final byte[] buf

count

protected int count

limit

protected int limit
Constructor Detail

RedisInputStream

public RedisInputStream(InputStream in,
                        int size)

RedisInputStream

public RedisInputStream(InputStream in)
Method Detail

readByte

public byte readByte()
              throws IOException
Throws:
IOException

readLine

public String readLine()

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Overrides:
read in class FilterInputStream
Throws:
IOException


Copyright © 2012. All Rights Reserved.