public interface ObjectDataOutput extends DataOutput, VersionAware, WanProtocolVersionAware
Modifier and Type | Method and Description |
---|---|
ByteOrder |
getByteOrder() |
byte[] |
toByteArray() |
byte[] |
toByteArray(int padding) |
void |
writeBooleanArray(boolean[] booleans) |
void |
writeByteArray(byte[] bytes) |
void |
writeCharArray(char[] chars) |
void |
writeDoubleArray(double[] values) |
void |
writeFloatArray(float[] values) |
void |
writeIntArray(int[] ints) |
void |
writeLongArray(long[] longs) |
void |
writeObject(Object object) |
void |
writeShortArray(short[] values) |
void |
writeString(String string) |
void |
writeStringArray(String[] values) |
void |
writeUTF(String string)
Deprecated.
for the sake of better naming. Use
writeString(String) instead |
void |
writeUTFArray(String[] values)
Deprecated.
for the sake of better naming. Use
writeStringArray(String[]) instead |
write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort
getVersion, setVersion
getWanProtocolVersion, setWanProtocolVersion
@Deprecated void writeUTF(@Nullable String string) throws IOException
writeString(String)
insteadwriteUTF
in interface DataOutput
IOException
void writeString(@Nullable String string) throws IOException
string
- string to be writtenIOException
- in case of any exceptional casevoid writeByteArray(@Nullable byte[] bytes) throws IOException
bytes
- byte array to be writtenIOException
- in case of any exceptional casevoid writeBooleanArray(@Nullable boolean[] booleans) throws IOException
booleans
- boolean array to be writtenIOException
- in case of any exceptional casevoid writeCharArray(@Nullable char[] chars) throws IOException
chars
- char array to be writtenIOException
- in case of any exceptional casevoid writeIntArray(@Nullable int[] ints) throws IOException
ints
- int array to be writtenIOException
- in case of any exceptional casevoid writeLongArray(@Nullable long[] longs) throws IOException
longs
- long array to be writtenIOException
- in case of any exceptional casevoid writeDoubleArray(@Nullable double[] values) throws IOException
values
- double array to be writtenIOException
- in case of any exceptional casevoid writeFloatArray(@Nullable float[] values) throws IOException
values
- float array to be writtenIOException
- in case of any exceptional casevoid writeShortArray(@Nullable short[] values) throws IOException
values
- short array to be writtenIOException
- in case of any exceptional case@Deprecated void writeUTFArray(@Nullable String[] values) throws IOException
writeStringArray(String[])
insteadvalues
- String array to be writtenIOException
- in case of any exceptional casevoid writeStringArray(@Nullable String[] values) throws IOException
values
- String array to be writtenIOException
- in case of any exceptional casevoid writeObject(@Nullable Object object) throws IOException
object
- object to be writtenIOException
- in case of any exceptional casebyte[] toByteArray()
byte[] toByteArray(int padding)
padding
- padding bytes at the beginning of the byte-array.ByteOrder getByteOrder()
Copyright © 2024 Hazelcast, Inc.. All rights reserved.