Package com.hazelcast.nio
Interface ObjectDataInput
- All Superinterfaces:
DataInput
,VersionAware
,WanProtocolVersionAware
Provides serialization methods for arrays of primitive types.
-
Method Summary
Modifier and TypeMethodDescriptionReturns class loader that internally used for objects.boolean[]
byte[]
char[]
double[]
float[]
int[]
long[]
<T> T
<T> T
readObject
(Class aClass) short[]
String[]
readUTF()
Deprecated.for the sake of better naming.String[]
Deprecated.for the sake of better naming.Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, skipBytes
Methods inherited from interface com.hazelcast.nio.VersionAware
getVersion, setVersion
Methods inherited from interface com.hazelcast.nio.WanProtocolVersionAware
getWanProtocolVersion, setWanProtocolVersion
-
Method Details
-
readUTF
Deprecated.for the sake of better naming. UsereadString()
instead- Specified by:
readUTF
in interfaceDataInput
- Throws:
IOException
-
readString
- Returns:
- the string read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readByteArray
- Returns:
- the byte array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readBooleanArray
- Returns:
- the boolean array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readCharArray
- Returns:
- the char array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readIntArray
- Returns:
- int array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readLongArray
- Returns:
- long array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readDoubleArray
- Returns:
- double array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readFloatArray
- Returns:
- float array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readShortArray
- Returns:
- short array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readUTFArray
Deprecated.for the sake of better naming. Use {#readStringArray()} instead- Returns:
- String array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readStringArray
- Returns:
- String array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readObject
- Type Parameters:
T
- type of the object to be read- Returns:
- object array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
readObject
- Type Parameters:
T
- type of the object to be read- Parameters:
aClass
- the type of the class to use when reading- Returns:
- object array read
- Throws:
IOException
- if it reaches end of file before finish reading
-
getClassLoader
ClassLoader getClassLoader()Returns class loader that internally used for objects.- Returns:
- classLoader
-
getByteOrder
ByteOrder getByteOrder()- Returns:
- ByteOrder BIG_ENDIAN or LITTLE_ENDIAN
-