Object
ByteInputKineticStream
- All Implemented Interfaces:
InputKineticStream
,AutoCloseable
Kinetic stream implementation for deserialization of Java objects into sequence of bytes.
-
Constructor Summary
ConstructorDescriptionCreates byte kinetic stream and attaches it to 'in' -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Object[]
readArray
(Object[] a, Class<?> type, Annotation[] fieldAnnotations) boolean
readBool
(Annotation[] fieldAnnotations) boolean[]
readBooleanArray
(boolean[] a, Annotation[] fieldAnnotations) byte
readByte
(Annotation[] fieldAnnotations) byte[]
readByteArray
(byte[] a, Annotation[] fieldAnnotations) char
readChar
(Annotation[] fieldAnnotations) char[]
readCharArray
(char[] a, Annotation[] fieldAnnotations) double
readDouble
(Annotation[] fieldAnnotations) double[]
readDoubleArray
(double[] a, Annotation[] fieldAnnotations) float
readFloat
(Annotation[] fieldAnnotations) float[]
readFloatArray
(float[] a, Annotation[] fieldAnnotations) int
readInt
(Annotation[] fieldAnnotations) int[]
readIntArray
(int[] a, Annotation[] fieldAnnotations) long
readLong
(Annotation[] fieldAnnotations) long[]
readLongArray
(long[] a, Annotation[] fieldAnnotations) short
readShort
(Annotation[] fieldAnnotations) short[]
readShortArray
(short[] a, Annotation[] fieldAnnotations) readString
(Annotation[] fieldAnnotations) String[]
readStringArray
(String[] a, Annotation[] fieldAnnotations)
-
Constructor Details
-
ByteInputKineticStream
Creates byte kinetic stream and attaches it to 'in'
-
-
Method Details
-
readString
- Specified by:
readString
in interfaceInputKineticStream
- Throws:
IOException
-
readInt
- Specified by:
readInt
in interfaceInputKineticStream
- Throws:
IOException
-
readFloat
- Specified by:
readFloat
in interfaceInputKineticStream
- Throws:
IOException
-
readDouble
- Specified by:
readDouble
in interfaceInputKineticStream
- Throws:
IOException
-
readBool
- Specified by:
readBool
in interfaceInputKineticStream
- Throws:
IOException
-
readChar
- Specified by:
readChar
in interfaceInputKineticStream
- Throws:
Exception
-
readArray
public Object[] readArray(Object[] a, Class<?> type, Annotation[] fieldAnnotations) throws Exception - Specified by:
readArray
in interfaceInputKineticStream
- Throws:
Exception
-
close
- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
readByte
- Specified by:
readByte
in interfaceInputKineticStream
- Throws:
Exception
-
readIntArray
- Specified by:
readIntArray
in interfaceInputKineticStream
- Throws:
Exception
-
readByteArray
- Specified by:
readByteArray
in interfaceInputKineticStream
- Throws:
Exception
-
readDoubleArray
- Specified by:
readDoubleArray
in interfaceInputKineticStream
- Throws:
Exception
-
readBooleanArray
- Specified by:
readBooleanArray
in interfaceInputKineticStream
- Throws:
Exception
-
readLong
- Specified by:
readLong
in interfaceInputKineticStream
- Throws:
Exception
-
readLongArray
- Specified by:
readLongArray
in interfaceInputKineticStream
- Throws:
Exception
-
readShort
- Specified by:
readShort
in interfaceInputKineticStream
- Throws:
Exception
-
readShortArray
- Specified by:
readShortArray
in interfaceInputKineticStream
- Throws:
Exception
-
readStringArray
- Specified by:
readStringArray
in interfaceInputKineticStream
- Throws:
Exception
-
readCharArray
- Specified by:
readCharArray
in interfaceInputKineticStream
- Throws:
Exception
-
readFloatArray
- Specified by:
readFloatArray
in interfaceInputKineticStream
- Throws:
Exception
-