Package dev.latvian.mods.klib.io.bytes
Interface ByteOutput
- All Known Implementing Classes:
ByteBufByteOutput,ByteBufferByteOutput,DataByteOutput,StreamByteOutput
- 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 TypeMethodDescriptiondefault voidflush()static DataByteOutputof(DataOutput out) static DataByteOutputof(DataOutputStream out) static StreamByteOutputof(OutputStream out) static ByteBufferByteOutputof(ByteBuffer buf) static DataByteOutputstatic DataByteOutputofByteBuilder(int initialSize) default byte[]default voidwriteAll(byte[] value) default voidwriteAll(byte[] value, int offset, int len) voidwriteByte(byte value) default voidwriteByteArray(byte[] value) default voidwriteDouble(double value) default voidwriteExactTime(@Nullable Instant value) default voidwriteFloat(float value) default voidwriteInt(int value) default voidwriteLong(long value) default voidwriteShort(short value) default voidwriteUByte(int value) default voidwriteUShort(int value) default voiddefault voiddefault voidwriteVarInt(int value) default voidwriteVarLong(long value)
-
Method Details
-
of
-
of
-
of
-
of
-
ofByteBuilder
-
ofByteBuilder
-
writeByte
- Throws:
IOException
-
flush
- Throws:
IOException
-
writeUByte
- Throws:
IOException
-
writeAll
- Throws:
IOException
-
writeAll
- Throws:
IOException
-
writeShort
- Throws:
IOException
-
writeUShort
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeLong
- Throws:
IOException
-
writeFloat
- Throws:
IOException
-
writeDouble
- Throws:
IOException
-
writeVarInt
- Throws:
IOException
-
writeVarLong
- Throws:
IOException
-
writeByteArray
- Throws:
IOException
-
writeUTF
- Throws:
IOException
-
writeExactTime
- Throws:
IOException
-
writeUUID
- Throws:
IOException
-
toByteArray
- Throws:
IOException
-