public class MessageInputStream extends InputStream
| 限定符和类型 | 字段和说明 |
|---|---|
protected byte[] |
byteBuffer |
protected int |
length |
protected int |
mark |
protected int |
readIndex |
| 构造器和说明 |
|---|
MessageInputStream(byte[] byteBuffer) |
MessageInputStream(byte[] byteBuffer,
int offset,
int length) |
protected byte[] byteBuffer
protected int readIndex
protected int mark
protected int length
public MessageInputStream(byte[] byteBuffer)
public MessageInputStream(byte[] byteBuffer,
int offset,
int length)
public int read()
read 在类中 InputStreampublic int directRead()
public int read(byte[] targetByteArray,
int offset,
int length)
read 在类中 InputStreampublic long skip(long n)
skip 在类中 InputStreampublic int available()
available 在类中 InputStreampublic void readIndex(int index)
public int readIndex()
public void mark()
public void reset()
reset 在类中 InputStreampublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableclose 在类中 InputStreamIOExceptionCopyright © 2020. All rights reserved.