Class ByteOrderValues

java.lang.Object
org.locationtech.jts.io.ByteOrderValues

public class ByteOrderValues extends Object
Methods to read and write primitive Java datatypes from/to byte sequences, allowing the byte order to be specified

Similar to the standard Java ByteBuffer class.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    getDouble(byte[] buf, int byteOrder)
     
    static int
    getInt(byte[] buf, int byteOrder)
     
    static long
    getLong(byte[] buf, int byteOrder)
     
    static void
    putDouble(double doubleValue, byte[] buf, int byteOrder)
     
    static void
    putInt(int intValue, byte[] buf, int byteOrder)
     
    static void
    putLong(long longValue, byte[] buf, int byteOrder)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ByteOrderValues

      public ByteOrderValues()
  • Method Details

    • 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)