Closeable
, AutoCloseable
public class RedisInputStream extends InputStream
限定符和类型 | 字段 | 说明 |
---|---|---|
protected byte[] |
buf |
|
protected int |
head |
|
protected InputStream |
in |
|
protected boolean |
mark |
|
protected long |
markLen |
|
protected List<RawByteListener> |
rawByteListeners |
|
protected int |
tail |
|
protected long |
total |
构造器 | 说明 |
---|---|
RedisInputStream(ByteArray array) |
|
RedisInputStream(InputStream in) |
|
RedisInputStream(InputStream in,
int len) |
限定符和类型 | 方法 | 说明 |
---|---|---|
int |
available() |
|
int |
bufSize() |
|
void |
close() |
|
protected void |
fill() |
|
int |
head() |
|
boolean |
isMarked() |
|
void |
mark() |
|
void |
mark(long len) |
|
protected void |
notify(byte... bytes) |
|
int |
read() |
|
int |
read(byte[] b) |
|
int |
read(byte[] b,
int off,
int len) |
|
long |
read(ByteArray bytes,
long offset,
long len) |
|
ByteArray |
readBytes(long len) |
|
int |
readInt(byte[] bytes) |
|
int |
readInt(byte[] bytes,
boolean littleEndian) |
|
int |
readInt(int len) |
|
int |
readInt(int length,
boolean littleEndian) |
|
long |
readLong(int len) |
|
long |
readLong(int length,
boolean littleEndian) |
|
String |
readString(int len) |
|
String |
readString(int len,
Charset charset) |
|
long |
readUInt(int length) |
|
long |
readUInt(int length,
boolean littleEndian) |
|
void |
setRawByteListeners(List<RawByteListener> rawByteListeners) |
|
long |
skip(long len) |
|
long |
skip(long len,
boolean notify) |
|
int |
tail() |
|
long |
total() |
|
long |
unmark() |
mark, markSupported, readAllBytes, readNBytes, reset, transferTo
protected int head
protected int tail
protected long total
protected long markLen
protected final byte[] buf
protected boolean mark
protected final InputStream in
protected List<RawByteListener> rawByteListeners
public RedisInputStream(ByteArray array)
public RedisInputStream(InputStream in)
public RedisInputStream(InputStream in, int len)
public void setRawByteListeners(List<RawByteListener> rawByteListeners)
rawByteListeners
- raw byte listenersprotected void notify(byte... bytes)
public int head()
public int tail()
public int bufSize()
public boolean isMarked()
public void mark(long len)
public void mark()
public long unmark()
public long total()
public ByteArray readBytes(long len) throws IOException
IOException
public int readInt(int len) throws IOException
IOException
public long readLong(int len) throws IOException
IOException
public int readInt(int length, boolean littleEndian) throws IOException
IOException
public long readUInt(int length) throws IOException
IOException
public long readUInt(int length, boolean littleEndian) throws IOException
IOException
public int readInt(byte[] bytes)
public int readInt(byte[] bytes, boolean littleEndian)
public long readLong(int length, boolean littleEndian) throws IOException
IOException
public String readString(int len) throws IOException
IOException
public String readString(int len, Charset charset) throws IOException
IOException
public int read() throws IOException
read
在类中 InputStream
IOException
public long read(ByteArray bytes, long offset, long len) throws IOException
IOException
public int read(byte[] b) throws IOException
read
在类中 InputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
在类中 InputStream
IOException
public int available() throws IOException
available
在类中 InputStream
IOException
public long skip(long len, boolean notify) throws IOException
IOException
public long skip(long len) throws IOException
skip
在类中 InputStream
IOException
public void close() throws IOException
close
在接口中 AutoCloseable
close
在接口中 Closeable
close
在类中 InputStream
IOException
protected void fill() throws IOException
IOException
Copyright © 2019. All rights reserved.