Class BitConverter


  • public class BitConverter
    extends Object
    • Constructor Detail

      • BitConverter

        public BitConverter()
    • Method Detail

      • getBytes

        public static byte[] getBytes​(boolean x)
      • getBytes

        public static byte[] getBytes​(char c)
      • getBytes

        public static byte[] getBytes​(double x)
      • getBytes

        public static byte[] getBytes​(short x)
      • getBytes

        public static byte[] getBytes​(int x)
      • getBytes

        public static byte[] getBytes​(long x)
      • getBytes

        public static byte[] getBytes​(float x)
      • getBytes

        public static byte[] getBytes​(String x)
      • doubleToInt64Bits

        public static long doubleToInt64Bits​(double x)
      • int64BitsToDouble

        public static double int64BitsToDouble​(long x)
      • toSingle

        public static float toSingle​(byte[] bytes,
                                     int index)
                              throws IOException
        Throws:
        IOException