Class BitConverter
java.lang.Object
org.apache.tika.parser.microsoft.onenote.fsshttpb.util.BitConverter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
doubleToInt64Bits
(double x) static byte[]
getBytes
(boolean x) static byte[]
getBytes
(char c) static byte[]
getBytes
(double x) static byte[]
getBytes
(float x) static byte[]
getBytes
(int x) static byte[]
getBytes
(long x) static byte[]
getBytes
(short x) static byte[]
static double
int64BitsToDouble
(long x) boolean
toBoolean
(byte[] bytes, int index) char
toChar
(byte[] bytes, int index) double
toDouble
(byte[] bytes, int index) static short
toInt16
(byte[] bytes, int index) static int
toInt32
(byte[] bytes, int index) static long
toInt64
(byte[] bytes, int index) static float
toSingle
(byte[] bytes, int index) static String
toString
(byte[] bytes) static long
toUInt32
(byte[] bytes, int index)
-
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
-
doubleToInt64Bits
public static long doubleToInt64Bits(double x) -
int64BitsToDouble
public static double int64BitsToDouble(long x) -
toInt16
- Throws:
IOException
-
toInt32
- Throws:
IOException
-
toUInt32
- Throws:
IOException
-
toInt64
- Throws:
IOException
-
toSingle
- Throws:
IOException
-
toString
- Throws:
IOException
-
toBoolean
- Throws:
IOException
-
toChar
- Throws:
IOException
-
toDouble
- Throws:
IOException
-