java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.util.BitConverter

public class BitConverter extends Object
  • Constructor Details

    • BitConverter

      public BitConverter()
  • Method Details

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

      public static short toInt16(byte[] bytes, int index) throws IOException
      Throws:
      IOException
    • toInt32

      public static int toInt32(byte[] bytes, int index) throws IOException
      Throws:
      IOException
    • toUInt32

      public static long toUInt32(byte[] bytes, int index) throws IOException
      Throws:
      IOException
    • toInt64

      public static long toInt64(byte[] bytes, int index) throws IOException
      Throws:
      IOException
    • toSingle

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

      public static String toString(byte[] bytes) throws IOException
      Throws:
      IOException
    • toBoolean

      public boolean toBoolean(byte[] bytes, int index) throws IOException
      Throws:
      IOException
    • toChar

      public char toChar(byte[] bytes, int index) throws IOException
      Throws:
      IOException
    • toDouble

      public double toDouble(byte[] bytes, int index) throws IOException
      Throws:
      IOException