Interface ByteInput
- All Known Implementing Classes:
ByteInput.OfBuffer, ByteInput.OfData, ByteInput.OfStream
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final record -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteInputof(byte[] bytes) static ByteInput.OfDatastatic ByteInput.OfDataof(DataInputStream in) static ByteInput.OfStreamof(InputStream in) static ByteInput.OfBufferof(ByteBuffer in) default voidreadAll(byte[] buffer) default voidreadAll(byte[] buffer, int offset, int len) bytereadByte()default byte[]default doubledefault Instantdefault floatdefault intreadInt()default longreadLong()default @Nullable Instantdefault @Nullable UUIDdefault shortdefault intdefault intdefault StringreadUTF()default UUIDreadUUID()default intdefault long
-
Method Details
-
of
-
of
-
of
-
of
-
of
-
readByte
- Throws:
IOException
-
readUByte
- Throws:
IOException
-
readAll
- Throws:
IOException
-
readAll
- Throws:
IOException
-
readShort
- Throws:
IOException
-
readUShort
- Throws:
IOException
-
readInt
- Throws:
IOException
-
readLong
- Throws:
IOException
-
readFloat
- Throws:
IOException
-
readDouble
- Throws:
IOException
-
readByteArray
- Throws:
IOException
-
readVarInt
- Throws:
IOException
-
readVarLong
- Throws:
IOException
-
readUTF
- Throws:
IOException
-
readExactTime
- Throws:
IOException
-
readNullableExactTime
- Throws:
IOException
-
readUUID
- Throws:
IOException
-
readNullableUUID
- Throws:
IOException
-