Class Encoder

java.lang.Object
bitronix.tm.utils.Encoder

public class Encoder extends Object
Number to byte array and byte array to number encoder.
Author:
lorban
  • Constructor Details

    • Encoder

      public Encoder()
  • Method Details

    • longToBytes

      public static byte[] longToBytes(long aLong)
    • intToBytes

      public static byte[] intToBytes(int anInt)
    • shortToBytes

      public static byte[] shortToBytes(short aShort)
    • bytesToLong

      public static long bytesToLong(byte[] bytes, int pos)
    • bytesToInt

      public static int bytesToInt(byte[] bytes, int pos)