- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
ByteOutputKineticStream
,CsvOutputKineticStream
Interface which needs to be implemented to support serialization of new types of kinetic streams.
All of its methods write values of certain data types into the stream which later can be read
back by InputKineticStream
.
Each method additionally accepts all field annotations associated with the field which value is written.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeArray
(Object[] fieldValue, Annotation[] fieldAnnotations) void
writeBoolean
(Boolean fieldValue, Annotation[] fieldAnnotations) void
writeBooleanArray
(boolean[] fieldValue, Annotation[] fieldAnnotations) void
writeByte
(Byte fieldValue, Annotation[] fieldAnnotations) void
writeByteArray
(byte[] fieldValue, Annotation[] fieldAnnotations) void
writeChar
(Character fieldValue, Annotation[] fieldAnnotations) void
writeCharArray
(char[] fieldValue, Annotation[] fieldAnnotations) void
writeDouble
(Double fieldValue, Annotation[] fieldAnnotations) void
writeDoubleArray
(double[] fieldValue, Annotation[] fieldAnnotations) void
writeFloat
(Float fieldValue, Annotation[] fieldAnnotations) void
writeFloatArray
(float[] fieldValue, Annotation[] fieldAnnotations) void
writeInt
(Integer fieldValue, Annotation[] fieldAnnotations) void
writeIntArray
(int[] fieldValue, Annotation[] fieldAnnotations) void
writeLong
(Long fieldValue, Annotation[] fieldAnnotations) void
writeShort
(Short fieldValue, Annotation[] fieldAnnotations) void
writeShortArray
(short[] fieldValue, Annotation[] fieldAnnotations) void
writeString
(String fieldValue, Annotation[] fieldAnnotations) void
writeStringArray
(String[] fieldValue, Annotation[] fieldAnnotations) Methods inherited from interface AutoCloseable
close
-
Method Details
-
writeString
- Throws:
Exception
-
writeInt
- Throws:
Exception
-
writeDouble
- Throws:
Exception
-
writeFloat
- Throws:
Exception
-
writeBoolean
- Throws:
Exception
-
writeByte
- Throws:
Exception
-
writeChar
- Throws:
Exception
-
writeArray
- Throws:
Exception
-
writeIntArray
- Throws:
Exception
-
writeByteArray
- Throws:
Exception
-
writeDoubleArray
- Throws:
Exception
-
writeBooleanArray
- Throws:
Exception
-
writeLong
- Throws:
Exception
-
writeShort
- Throws:
Exception
-
writeShortArray
- Throws:
Exception
-
writeStringArray
- Throws:
Exception
-
writeCharArray
- Throws:
Exception
-
writeFloatArray
- Throws:
Exception
-