Class FloatArraySerializer
java.lang.Object
se.l4.commons.serialization.collections.array.FloatArraySerializer
- All Implemented Interfaces:
Serializer<float[]>,SerializerOrResolver<float[]>
public class FloatArraySerializer extends Object implements Serializer<float[]>
Custom serializer for arrays of floats.
-
Nested Class Summary
Nested classes/interfaces inherited from interface se.l4.commons.serialization.Serializer
Serializer.NullHandling -
Constructor Summary
Constructors Constructor Description FloatArraySerializer() -
Method Summary
Modifier and Type Method Description float[]read(StreamingInput in)Read an object from the specified stream.voidwrite(float[] object, String name, StreamingOutput out)Write and object to the specified stream.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface se.l4.commons.serialization.Serializer
fromBytes, fromBytes, getFormatDefinition, toBytes, toBytes
-
Constructor Details
-
FloatArraySerializer
public FloatArraySerializer()
-
-
Method Details
-
read
Description copied from interface:SerializerRead an object from the specified stream.- Specified by:
readin interfaceSerializer<float[]>- Returns:
- Throws:
IOException
-
write
Description copied from interface:SerializerWrite and object to the specified stream.- Specified by:
writein interfaceSerializer<float[]>- Parameters:
object- object to write, if the serializer implementsSerializer.NullHandlingthis may benull, if not the serializer can assume it is notnullname- the name the object should have, should be passed along to the outputout- the stream to use for writing- Throws:
IOException- if unable to write the object
-