- Object
-
- ByteInputKineticStream
-
- All Implemented Interfaces:
InputKineticStream
,AutoCloseable
public class ByteInputKineticStream extends Object implements InputKineticStream
Kinetic stream implementation for deserialization of Java objects into sequence of bytes.
-
-
Constructor Summary
Constructors Constructor Description ByteInputKineticStream(DataInput in)
Creates byte kinetic stream and attaches it to 'in'
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
Object[]
readArray(Class<?> type)
boolean
readBool()
boolean[]
readBooleanArray()
byte
readByte()
byte[]
readByteArray()
double
readDouble()
double[]
readDoubleArray()
float
readFloat()
int
readInt()
int[]
readIntArray()
String
readString()
-
-
-
Method Detail
-
readString
public String readString() throws IOException
- Specified by:
readString
in interfaceInputKineticStream
- Throws:
IOException
-
readInt
public int readInt() throws IOException
- Specified by:
readInt
in interfaceInputKineticStream
- Throws:
IOException
-
readFloat
public float readFloat() throws IOException
- Specified by:
readFloat
in interfaceInputKineticStream
- Throws:
IOException
-
readDouble
public double readDouble() throws IOException
- Specified by:
readDouble
in interfaceInputKineticStream
- Throws:
IOException
-
readBool
public boolean readBool() throws IOException
- Specified by:
readBool
in interfaceInputKineticStream
- Throws:
IOException
-
readArray
public Object[] readArray(Class<?> type) throws Exception
- Specified by:
readArray
in interfaceInputKineticStream
- Throws:
Exception
-
close
public void close() throws Exception
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
readByte
public byte readByte() throws Exception
- Specified by:
readByte
in interfaceInputKineticStream
- Throws:
Exception
-
readIntArray
public int[] readIntArray() throws Exception
- Specified by:
readIntArray
in interfaceInputKineticStream
- Throws:
Exception
-
readByteArray
public byte[] readByteArray() throws Exception
- Specified by:
readByteArray
in interfaceInputKineticStream
- Throws:
Exception
-
readDoubleArray
public double[] readDoubleArray() throws Exception
- Specified by:
readDoubleArray
in interfaceInputKineticStream
- Throws:
Exception
-
readBooleanArray
public boolean[] readBooleanArray() throws Exception
- Specified by:
readBooleanArray
in interfaceInputKineticStream
- Throws:
Exception
-
-