Package com.hazelcast.nio
Interface ObjectDataInput
- All Superinterfaces:
DataInput
,VersionAware
,WanProtocolVersionAware
public interface ObjectDataInput extends DataInput, VersionAware, WanProtocolVersionAware
Provides serialization methods for arrays of primitive types.
-
Method Summary
Modifier and Type Method 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[]
readUTFArray()
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
Methods inherited from interface com.hazelcast.nio.WanProtocolVersionAware
getWanProtocolVersion, setWanProtocolVersion
-
Method Details
-
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
- 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
-