com.hazelcast.nio.serialization
Class ObjectDataInputStream
java.lang.Object
java.io.InputStream
com.hazelcast.nio.serialization.ObjectDataInputStream
- All Implemented Interfaces:
- ObjectDataInput, Closeable, DataInput
public class ObjectDataInputStream
- extends InputStream
- implements ObjectDataInput, Closeable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectDataInputStream
public ObjectDataInputStream(InputStream in,
SerializationService serializationService)
read
public int read()
throws IOException
- Specified by:
read in class InputStream
- Throws:
IOException
skip
public long skip(long n)
throws IOException
- Overrides:
skip in class InputStream
- Throws:
IOException
available
public int available()
throws IOException
- Overrides:
available in class InputStream
- Throws:
IOException
read
public int read(byte[] b)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
read
public int read(byte[] b,
int off,
int len)
throws IOException
- Overrides:
read in class InputStream
- Throws:
IOException
readFully
public void readFully(byte[] b)
throws IOException
- Specified by:
readFully in interface DataInput
- Throws:
IOException
readFully
public void readFully(byte[] b,
int off,
int len)
throws IOException
- Specified by:
readFully in interface DataInput
- Throws:
IOException
skipBytes
public int skipBytes(int n)
throws IOException
- Specified by:
skipBytes in interface DataInput
- Throws:
IOException
readBoolean
public boolean readBoolean()
throws IOException
- Specified by:
readBoolean in interface DataInput
- Throws:
IOException
readByte
public byte readByte()
throws IOException
- Specified by:
readByte in interface DataInput
- Throws:
IOException
readUnsignedByte
public int readUnsignedByte()
throws IOException
- Specified by:
readUnsignedByte in interface DataInput
- Throws:
IOException
readShort
public short readShort()
throws IOException
- Specified by:
readShort in interface DataInput
- Throws:
IOException
readUnsignedShort
public int readUnsignedShort()
throws IOException
- Specified by:
readUnsignedShort in interface DataInput
- Throws:
IOException
readChar
public char readChar()
throws IOException
- Specified by:
readChar in interface DataInput
- Throws:
IOException
readInt
public int readInt()
throws IOException
- Specified by:
readInt in interface DataInput
- Throws:
IOException
readLong
public long readLong()
throws IOException
- Specified by:
readLong in interface DataInput
- Throws:
IOException
readFloat
public float readFloat()
throws IOException
- Specified by:
readFloat in interface DataInput
- Throws:
IOException
readDouble
public double readDouble()
throws IOException
- Specified by:
readDouble in interface DataInput
- Throws:
IOException
readByteArray
public byte[] readByteArray()
throws IOException
- Specified by:
readByteArray in interface ObjectDataInput
- Returns:
- the byte array read
- Throws:
IOException - if it reaches end of file before finish reading
readCharArray
public char[] readCharArray()
throws IOException
- Specified by:
readCharArray in interface ObjectDataInput
- Returns:
- the char array read
- Throws:
IOException - if it reaches end of file before finish reading
readIntArray
public int[] readIntArray()
throws IOException
- Specified by:
readIntArray in interface ObjectDataInput
- Returns:
- int array read
- Throws:
IOException - if it reaches end of file before finish reading
readLongArray
public long[] readLongArray()
throws IOException
- Specified by:
readLongArray in interface ObjectDataInput
- Returns:
- long array read
- Throws:
IOException - if it reaches end of file before finish reading
readDoubleArray
public double[] readDoubleArray()
throws IOException
- Specified by:
readDoubleArray in interface ObjectDataInput
- Returns:
- double array read
- Throws:
IOException - if it reaches end of file before finish reading
readFloatArray
public float[] readFloatArray()
throws IOException
- Specified by:
readFloatArray in interface ObjectDataInput
- Returns:
- float array read
- Throws:
IOException - if it reaches end of file before finish reading
readShortArray
public short[] readShortArray()
throws IOException
- Specified by:
readShortArray in interface ObjectDataInput
- Returns:
- short array read
- Throws:
IOException - if it reaches end of file before finish reading
readLine
@Deprecated
public String readLine()
throws IOException
- Deprecated.
- Specified by:
readLine in interface DataInput
- Throws:
IOException
readUTF
public String readUTF()
throws IOException
- Specified by:
readUTF in interface DataInput
- Throws:
IOException
close
public void close()
throws IOException
- Specified by:
close in interface Closeable- Overrides:
close in class InputStream
- Throws:
IOException
mark
public void mark(int readlimit)
- Overrides:
mark in class InputStream
reset
public void reset()
throws IOException
- Overrides:
reset in class InputStream
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported in class InputStream
readObject
public Object readObject()
throws IOException
- Specified by:
readObject in interface ObjectDataInput
- Returns:
- object array read
- Throws:
IOException - if it reaches end of file before finish reading
readData
public Data readData()
throws IOException
- Specified by:
readData in interface ObjectDataInput
- Returns:
- data read
- Throws:
IOException - if it reaches end of file before finish reading
getClassLoader
public ClassLoader getClassLoader()
- Description copied from interface:
ObjectDataInput
- Returns class loader that internally used for objects
- Specified by:
getClassLoader in interface ObjectDataInput
- Returns:
- classLoader
getByteOrder
public ByteOrder getByteOrder()
- Specified by:
getByteOrder in interface ObjectDataInput
- Returns:
- ByteOrder BIG_ENDIAN or LITTLE_ENDIAN
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.