public interface ObjectDataInput extends DataInput, VersionAware, WanProtocolVersionAware
Modifier and Type | Method and Description |
---|---|
ByteOrder |
getByteOrder() |
ClassLoader |
getClassLoader()
Returns class loader that internally used for objects.
|
boolean[] |
readBooleanArray() |
byte[] |
readByteArray() |
char[] |
readCharArray() |
double[] |
readDoubleArray() |
float[] |
readFloatArray() |
int[] |
readIntArray() |
long[] |
readLongArray() |
<T> T |
readObject() |
<T> T |
readObject(Class aClass) |
short[] |
readShortArray() |
String |
readString() |
String[] |
readStringArray() |
String |
readUTF()
Deprecated.
for the sake of better naming. Use
readString() instead |
String[] |
readUTFArray()
Deprecated.
for the sake of better naming. Use
readStringArray() instead |
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, skipBytes
getVersion, setVersion
getWanProtocolVersion, setWanProtocolVersion
@Deprecated @Nullable String readUTF() throws IOException
readString()
insteadreadUTF
in interface DataInput
IOException
@Nullable String readString() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable byte[] readByteArray() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable boolean[] readBooleanArray() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable char[] readCharArray() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable int[] readIntArray() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable long[] readLongArray() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable double[] readDoubleArray() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable float[] readFloatArray() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable short[] readShortArray() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable @Deprecated String[] readUTFArray() throws IOException
readStringArray()
insteadIOException
- if it reaches end of file before finish reading@Nullable String[] readStringArray() throws IOException
IOException
- if it reaches end of file before finish reading@Nullable <T> T readObject() throws IOException
T
- type of the object to be readIOException
- if it reaches end of file before finish reading@Nullable <T> T readObject(Class aClass) throws IOException
T
- type of the object to be readaClass
- the type of the class to use when readingIOException
- if it reaches end of file before finish readingClassLoader getClassLoader()
ByteOrder getByteOrder()
Copyright © 2022 Hazelcast, Inc.. All rights reserved.