Class ByteConversions
java.lang.Object
org.apache.commons.imaging.common.ByteConversions
Convenience methods for converting data types to and from
byte arrays.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static byte[]
static byte[]
static byte[]
private static void
private static byte[]
static byte[]
static byte[]
private static void
private static byte[]
static byte[]
static byte[]
private static void
private static byte[]
static byte[]
static byte[]
private static void
private static byte[]
toBytes
(RationalNumber[] values, int offset, int length, ByteOrder byteOrder) static byte[]
toBytes
(RationalNumber[] values, ByteOrder byteOrder) static byte[]
toBytes
(RationalNumber value, ByteOrder byteOrder) private static void
toBytes
(RationalNumber value, ByteOrder byteOrder, byte[] result, int offset) private static double
static double
private static double[]
static double[]
private static float
static float
private static float[]
static float[]
static int
static int
private static int[]
static int[]
private static RationalNumber
toRational
(byte[] bytes, int offset, ByteOrder byteOrder) static RationalNumber
toRational
(byte[] bytes, ByteOrder byteOrder) private static RationalNumber[]
toRationals
(byte[] bytes, int offset, int length, ByteOrder byteOrder) static RationalNumber[]
toRationals
(byte[] bytes, ByteOrder byteOrder) private static short
static short
private static short[]
static short[]
static int
static int
private static int[]
static int[]
-
Constructor Details
-
ByteConversions
private ByteConversions()
-
-
Method Details
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toBytes
-
toShort
-
toShort
-
toShorts
-
toShorts
-
toUInt16
-
toUInt16
-
toUInt16s
-
toUInt16s
-
toInt
-
toInt
-
toInts
-
toInts
-
toFloat
-
toFloat
-
toFloats
-
toFloats
-
toDouble
-
toDouble
-
toDoubles
-
toDoubles
-
toRational
-
toRational
-
toRationals
-
toRationals
private static RationalNumber[] toRationals(byte[] bytes, int offset, int length, ByteOrder byteOrder)
-