public final class SliceInput extends InputStream implements DataInput
| 构造器和说明 |
|---|
SliceInput(Slice slice) |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
available() |
int |
decrPosition(int delta) |
int |
incPosition(int delta) |
int |
position() |
int |
read() |
int |
read3BytesInt() |
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readByteArray(int length) |
void |
readBytes(byte[] destination) |
void |
readBytes(byte[] destination,
int destinationIndex,
int length) |
void |
readBytes(ByteBuffer destination)
Transfers this buffer's data to the specified destination starting at
the current
position until the destination's position
reaches its limit, and increases the position by the
number of the transferred bytes. |
char |
readChar()
Unsupported operation
|
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] destination) |
void |
readFully(byte[] destination,
int offset,
int length) |
int |
readInt() |
String |
readLine()
Unsupported operation
|
long |
readLong() |
short |
readShort() |
String |
readString(int length,
String charset) |
int |
readUnsigned3BytesInt() |
int |
readUnsignedByte() |
long |
readUnsignedInt()
Gets an unsigned 32-bit integer at the current
position
and increases the position by 4 in this buffer. |
int |
readUnsignedShort() |
String |
readUTF()
Unsupported operation
|
String |
readUTF8String(int length) |
void |
setPosition(int position) |
int |
skipBytes(int length) |
String |
toString() |
close, mark, markSupported, read, read, reset, skippublic SliceInput(Slice slice)
public int position()
public void setPosition(int position)
public int incPosition(int delta)
public int decrPosition(int delta)
public int available()
available 在类中 InputStreampublic boolean readBoolean()
readBoolean 在接口中 DataInputpublic int read()
read 在类中 InputStreampublic int readUnsignedByte()
readUnsignedByte 在接口中 DataInputpublic int readUnsignedShort()
readUnsignedShort 在接口中 DataInputpublic int read3BytesInt()
public int readUnsigned3BytesInt()
public long readUnsignedInt()
position
and increases the position by 4 in this buffer.IndexOutOfBoundsException - if this.available() is less than 4public double readDouble()
readDouble 在接口中 DataInputpublic String readUTF8String(int length)
public byte[] readByteArray(int length)
public void readBytes(byte[] destination)
public void readFully(byte[] destination,
int offset,
int length)
public void readBytes(byte[] destination,
int destinationIndex,
int length)
public void readBytes(ByteBuffer destination)
position until the destination's position
reaches its limit, and increases the position by the
number of the transferred bytes.destination - destinationIndexOutOfBoundsException - if destination.remaining() is greater than
this.available()public char readChar()
readChar 在接口中 DataInputUnsupportedOperationException - alwayspublic String readLine()
readLine 在接口中 DataInputUnsupportedOperationException - alwayspublic String readUTF()
readUTF 在接口中 DataInputUnsupportedOperationException - alwaysCopyright © 2019–2020 Alibaba Group Holding Limited. All rights reserved.