- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ByteInputKineticStream
,CsvInputKineticStream
Interface which needs to be implemented to support deserialization of new types of kinetic
streams.
All of them read values from the stream which were previously written there by OutputKineticStream
.
Methods for reading arrays are called with the value from the field of the object which is being deserialized. This helps to populate fixed size array fields. Users can populate such arrays directly and then return reference back so that kineticstreamer don't have to allocate new arrays for them.
Each method additionally accepts all field annotations associated with the field, value for which is currently read.
-
Method Summary
Modifier and TypeMethodDescriptionObject[]
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) Methods inherited from interface AutoCloseable
close
-
Method Details
-
readString
- Throws:
Exception
-
readInt
- Throws:
Exception
-
readFloat
- Throws:
Exception
-
readDouble
- Throws:
Exception
-
readBool
- Throws:
Exception
-
readByte
- Throws:
Exception
-
readChar
- Throws:
Exception
-
readArray
- Throws:
Exception
-
readIntArray
- Throws:
Exception
-
readByteArray
- Throws:
Exception
-
readDoubleArray
- Throws:
Exception
-
readBooleanArray
- Throws:
Exception
-
readStringArray
- Throws:
Exception
-
readLong
- Throws:
Exception
-
readLongArray
- Throws:
Exception
-
readShort
- Throws:
Exception
-
readShortArray
- Throws:
Exception
-
readCharArray
- Throws:
Exception
-
readFloatArray
- Throws:
Exception
-