Package dev.latvian.mods.klib.io.bytes
Interface ByteInput
- All Known Implementing Classes:
ByteBufByteInput,ByteBufferByteInput,DataByteInput,StreamByteInput
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ByteInputof(byte[] bytes) static ByteInputstatic ByteInputof(DataInputStream in) static ByteInputof(InputStream in) static ByteInputof(ByteBuffer in) default byte[]readAll()default intreadAll(byte[] buffer) default intreadAll(byte[] buffer, int offset, int len) default booleandefault bytereadByte()default byte[]default doubledefault Instantdefault floatdefault intreadInt()default longreadLong()default @Nullable Instantdefault @Nullable UUIDintreadRaw()default shortdefault intdefault intdefault StringreadUTF()default UUIDreadUUID()default intdefault longdefault voidskip(long skip)
-
Method Details
-
of
-
of
-
of
-
of
-
of
-
readRaw
- Throws:
IOException
-
skip
- Throws:
IOException
-
readByte
- Throws:
IOException
-
readUByte
- Throws:
IOException
-
readAll
- Throws:
IOException
-
readAll
- Throws:
IOException
-
readAll
- Throws:
IOException
-
readBoolean
- 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
-