Package de.gsi.dataset.serializer.spi
Class BinaryArrayFactory
- java.lang.Object
-
- de.gsi.dataset.serializer.spi.BinarySerialiser
-
- de.gsi.dataset.serializer.spi.BinaryArrayFactory
-
public class BinaryArrayFactory extends BinarySerialiser
Helper class to convert serialised one-dimensional arrays into the corresponding native n-dimensional arrays- Author:
- rstein
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.gsi.dataset.serializer.spi.BinarySerialiser
BinarySerialiser.HeaderInfo
-
-
Field Summary
-
Fields inherited from class de.gsi.dataset.serializer.spi.BinarySerialiser
SELF, THIS_HEADER, VERSION_MAJOR, VERSION_MICRO, VERSION_MINOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBinaryArrayFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidput(FastByteBuffer buffer, java.lang.String fieldName, double[][] matrix)static double[][]readDoubleMatrix(IoBuffer buffer, FieldHeader fieldHeader)-
Methods inherited from class de.gsi.dataset.serializer.spi.BinarySerialiser
adjustDataByteSizeBlock, checkHeaderInfo, getArrayDimensions, getBoolean, getBooleanArray, getBufferIncrements, getByte, getByteArray, getCharacter, getCharArray, getCollection, getDouble, getDoubleArray, getDoubleArray, getEnum, getEnumTypeList, getFieldHeader, getFloat, getFloatArray, getGenericArrayAsBoxedPrimitive, getIntArray, getInteger, getList, getLong, getLongArray, getMap, getNumberOfElements, getQueue, getSet, getShort, getShortArray, getString, getStringArray, parseIoStream, parseIoStream, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, put, putArrayHeader, putEndMarker, putFieldHeader, putFieldHeader, putGenericArrayAsPrimitive, putHeaderInfo, putStartMarker, setBufferIncrements, swallowRest, toDoubles, toDoubles, toDoubles, toDoubles, toDoubles, toDoubles, toDoubles, toDoubles
-
-
-
-
Method Detail
-
put
public static void put(FastByteBuffer buffer, java.lang.String fieldName, double[][] matrix)
-
readDoubleMatrix
public static double[][] readDoubleMatrix(IoBuffer buffer, FieldHeader fieldHeader)
-
-