com.hazelcast.nio
Interface ObjectDataInput

All Superinterfaces:
DataInput
All Known Subinterfaces:
BufferObjectDataInput
All Known Implementing Classes:
ObjectDataInputStream

public interface ObjectDataInput
extends DataInput

Provides serialization methods for arrays of primitive types


Method Summary
 ByteOrder getByteOrder()
           
 ClassLoader getClassLoader()
          Returns class loader that internally used for objects
 byte[] readByteArray()
           
 char[] readCharArray()
           
 Data readData()
           
 double[] readDoubleArray()
           
 float[] readFloatArray()
           
 int[] readIntArray()
           
 long[] readLongArray()
           
<T> T
readObject()
           
 short[] readShortArray()
           
 
Methods inherited from interface java.io.DataInput
readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, skipBytes
 

Method Detail

readByteArray

byte[] readByteArray()
                     throws IOException
Returns:
the byte array read
Throws:
IOException - if it reaches end of file before finish reading

readCharArray

char[] readCharArray()
                     throws IOException
Returns:
the char array read
Throws:
IOException - if it reaches end of file before finish reading

readIntArray

int[] readIntArray()
                   throws IOException
Returns:
int array read
Throws:
IOException - if it reaches end of file before finish reading

readLongArray

long[] readLongArray()
                     throws IOException
Returns:
long array read
Throws:
IOException - if it reaches end of file before finish reading

readDoubleArray

double[] readDoubleArray()
                         throws IOException
Returns:
double array read
Throws:
IOException - if it reaches end of file before finish reading

readFloatArray

float[] readFloatArray()
                       throws IOException
Returns:
float array read
Throws:
IOException - if it reaches end of file before finish reading

readShortArray

short[] readShortArray()
                       throws IOException
Returns:
short array read
Throws:
IOException - if it reaches end of file before finish reading

readObject

<T> T readObject()
             throws IOException
Type Parameters:
T - type of the object in array to be read
Returns:
object array read
Throws:
IOException - if it reaches end of file before finish reading

readData

Data readData()
              throws IOException
Returns:
data 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


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.