public interface DataInputView extends DataInput, Closeable, Serializable
| Modifier and Type | Method and Description |
|---|---|
default boolean |
readBoolean()
Reads a 1 byte boolean.
|
void |
readBytes(byte[] b) |
void |
readBytes(byte[] b,
int offset,
int len) |
default char |
readChar()
Reads a 2 byte char.
|
default double |
readDouble()
Reads an 8 byte double.
|
default float |
readFloat()
Reads a 4 byte float.
|
default void |
readFully(byte[] b) |
default void |
readFully(byte[] b,
int off,
int len) |
default int |
readInt()
Reads a 4 byte int.
|
default long |
readLong()
Reads an 8 byte long.
|
default Boolean |
readOptionalBoolean()
Reads an optional
Boolean. |
default Double |
readOptionalDouble() |
default Float |
readOptionalFloat() |
default Integer |
readOptionalInt()
Reads an optional
Integer. |
default Long |
readOptionalLong()
Reads an optional
Long. |
default Integer |
readOptionalVInt() |
default Long |
readOptionalVLong() |
default Integer |
readOptionalZInt() |
default Long |
readOptionalZLong() |
default short |
readShort()
Reads a 2 byte short.
|
default int |
readUnsignedShort()
Reads a 2 byte short as an int from 0 to 65535.
|
default double |
readVarDouble(double precision)
Reads a 1-9 byte double with reduced precision.
|
default float |
readVFloat(float precision,
boolean optimizePositive)
Reads a 1-5 byte float with reduced precision.
|
default int |
readVInt()
Reads an int stored in variable-length format.
|
default long |
readVLong()
Reads a long stored in variable-length format.
|
default int |
readZInt()
Reads a
zig-zag-encoded variable-length integer. |
default long |
readZLong() |
void readBytes(byte[] b)
throws IOException
IOExceptionvoid readBytes(byte[] b,
int offset,
int len)
throws IOException
IOExceptiondefault void readFully(byte[] b)
throws IOException
readFully in interface DataInputIOExceptiondefault void readFully(byte[] b,
int off,
int len)
throws IOException
readFully in interface DataInputIOExceptiondefault boolean readBoolean()
throws IOException
readBoolean in interface DataInputIOExceptiondefault Boolean readOptionalBoolean() throws IOException
Boolean.IOExceptiondefault short readShort()
throws IOException
readShort in interface DataInputIOExceptiondefault int readUnsignedShort()
throws IOException
readUnsignedShort in interface DataInputIOExceptiondefault char readChar()
throws IOException
readChar in interface DataInputIOExceptiondefault int readInt()
throws IOException
readInt in interface DataInputIOExceptiondefault int readVInt()
throws IOException
readInt() or readZInt()IOExceptiondefault int readZInt()
throws IOException
zig-zag-encoded variable-length integer.IOExceptionDataOutputView.writeZInt(int)default Integer readOptionalInt() throws IOException
Integer.IOExceptiondefault Integer readOptionalVInt() throws IOException
IOExceptiondefault Integer readOptionalZInt() throws IOException
IOExceptiondefault long readLong()
throws IOException
readLong in interface DataInputIOExceptiondefault long readVLong()
throws IOException
readLong() or readZLong()
for negative numbers.IOExceptiondefault long readZLong()
throws IOException
IOExceptiondefault Long readOptionalLong() throws IOException
Long.IOExceptiondefault Long readOptionalVLong() throws IOException
IOExceptiondefault Long readOptionalZLong() throws IOException
IOExceptiondefault float readFloat()
throws IOException
readFloat in interface DataInputIOExceptiondefault float readVFloat(float precision,
boolean optimizePositive)
throws IOException
IOExceptiondefault double readVarDouble(double precision)
throws IOException
IOExceptiondefault Float readOptionalFloat() throws IOException
IOExceptiondefault double readDouble()
throws IOException
readDouble in interface DataInputIOExceptiondefault Double readOptionalDouble() throws IOException
IOExceptionCopyright © 2022. All rights reserved.