Package org.meteoinfo.jts.io
Class ByteOrderValues
- java.lang.Object
-
- org.meteoinfo.jts.io.ByteOrderValues
-
public class ByteOrderValues extends java.lang.ObjectMethods to read and write primitive Java datatypes from/to byte sequences, allowing the byte order to be specifiedSimilar to the standard Java
ByteBufferclass.
-
-
Field Summary
Fields Modifier and Type Field Description static intBIG_ENDIANstatic intLITTLE_ENDIAN
-
Constructor Summary
Constructors Constructor Description ByteOrderValues()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doublegetDouble(byte[] buf, int byteOrder)static intgetInt(byte[] buf, int byteOrder)static longgetLong(byte[] buf, int byteOrder)static voidputDouble(double doubleValue, byte[] buf, int byteOrder)static voidputInt(int intValue, byte[] buf, int byteOrder)static voidputLong(long longValue, byte[] buf, int byteOrder)
-
-
-
Field Detail
-
BIG_ENDIAN
public static final int BIG_ENDIAN
- See Also:
- Constant Field Values
-
LITTLE_ENDIAN
public static final int LITTLE_ENDIAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
getInt
public static int getInt(byte[] buf, int byteOrder)
-
putInt
public static void putInt(int intValue, byte[] buf, int byteOrder)
-
getLong
public static long getLong(byte[] buf, int byteOrder)
-
putLong
public static void putLong(long longValue, byte[] buf, int byteOrder)
-
getDouble
public static double getDouble(byte[] buf, int byteOrder)
-
putDouble
public static void putDouble(double doubleValue, byte[] buf, int byteOrder)
-
-