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 voidprivate static byte[]static byte[]static byte[]private static voidprivate static byte[]static byte[]static byte[]private static voidprivate static byte[]static byte[]static byte[]private static voidprivate 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 voidtoBytes(RationalNumber value, ByteOrder byteOrder, byte[] result, int offset) private static doublestatic doubleprivate static double[]static double[]private static floatstatic floatprivate static float[]static float[]static intstatic intprivate static int[]static int[]private static RationalNumbertoRational(byte[] bytes, int offset, ByteOrder byteOrder) static RationalNumbertoRational(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 shortstatic shortprivate static short[]static short[]static intstatic intprivate 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)
-