Package omero.gateway.rnd
Class DoubleConverter
- java.lang.Object
-
- omero.gateway.rnd.DoubleConverter
-
public class DoubleConverter extends java.lang.Object
Packs a sequence of bytes representing a big-endian double into adouble
value of appropriate integer type.This class handles the conversion of double of
4
-byte length (bytes are assumed to be8
-bit long).- Since:
- OME3.0
-
-
Constructor Summary
Constructors Constructor Description DoubleConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
pack(omero.util.ReadOnlyByteArray data, int offset, int length)
Implemented as specified byBytesConverter
-
-
-
Method Detail
-
pack
public double pack(omero.util.ReadOnlyByteArray data, int offset, int length)
Implemented as specified byBytesConverter
- Parameters:
data
- The byte array containing the bytes to convert.offset
- The position of the first byte making up the pixel value.length
- The number of bytes that make up the pixel value.- Returns:
- An object to wrap the actual numeric value.
- See Also:
BytesConverter.pack(ReadOnlyByteArray, int, int)
-
-