Package com.hazelcast.nio
Interface ObjectDataInput
-
- All Superinterfaces:
java.io.DataInput
,VersionAware
,WanProtocolVersionAware
public interface ObjectDataInput extends java.io.DataInput, VersionAware, WanProtocolVersionAware
Provides serialization methods for arrays of primitive types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.nio.ByteOrder
getByteOrder()
java.lang.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(java.lang.Class aClass)
short[]
readShortArray()
java.lang.String
readString()
java.lang.String[]
readStringArray()
java.lang.String
readUTF()
Deprecated.for the sake of better naming.java.lang.String[]
readUTFArray()
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 Detail
-
readUTF
@Deprecated @Nullable java.lang.String readUTF() throws java.io.IOException
Deprecated.for the sake of better naming. UsereadString()
instead- Specified by:
readUTF
in interfacejava.io.DataInput
- Throws:
java.io.IOException
-
readString
@Nullable java.lang.String readString() throws java.io.IOException
- Returns:
- the string read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readByteArray
@Nullable byte[] readByteArray() throws java.io.IOException
- Returns:
- the byte array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readBooleanArray
@Nullable boolean[] readBooleanArray() throws java.io.IOException
- Returns:
- the boolean array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readCharArray
@Nullable char[] readCharArray() throws java.io.IOException
- Returns:
- the char array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readIntArray
@Nullable int[] readIntArray() throws java.io.IOException
- Returns:
- int array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readLongArray
@Nullable long[] readLongArray() throws java.io.IOException
- Returns:
- long array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readDoubleArray
@Nullable double[] readDoubleArray() throws java.io.IOException
- Returns:
- double array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readFloatArray
@Nullable float[] readFloatArray() throws java.io.IOException
- Returns:
- float array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readShortArray
@Nullable short[] readShortArray() throws java.io.IOException
- Returns:
- short array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readUTFArray
@Nullable @Deprecated java.lang.String[] readUTFArray() throws java.io.IOException
Deprecated.for the sake of better naming. UsereadStringArray()
instead- Returns:
- String array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readStringArray
@Nullable java.lang.String[] readStringArray() throws java.io.IOException
- Returns:
- String array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readObject
@Nullable <T> T readObject() throws java.io.IOException
- Type Parameters:
T
- type of the object to be read- Returns:
- object array read
- Throws:
java.io.IOException
- if it reaches end of file before finish reading
-
readObject
@Nullable <T> T readObject(java.lang.Class aClass) throws java.io.IOException
- 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:
java.io.IOException
- if it reaches end of file before finish reading
-
getClassLoader
java.lang.ClassLoader getClassLoader()
Returns class loader that internally used for objects.- Returns:
- classLoader
-
getByteOrder
java.nio.ByteOrder getByteOrder()
- Returns:
- ByteOrder BIG_ENDIAN or LITTLE_ENDIAN
-
-