Class BitConverter
- java.lang.Object
- 
- org.apache.tika.parser.microsoft.onenote.fsshttpb.util.BitConverter
 
- 
 public class BitConverter extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description BitConverter()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static longdoubleToInt64Bits(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[]getBytes(String x)static doubleint64BitsToDouble(long x)booleantoBoolean(byte[] bytes, int index)chartoChar(byte[] bytes, int index)doubletoDouble(byte[] bytes, int index)static shorttoInt16(byte[] bytes, int index)static inttoInt32(byte[] bytes, int index)static longtoInt64(byte[] bytes, int index)static floattoSingle(byte[] bytes, int index)static StringtoString(byte[] bytes)static longtoUInt32(byte[] bytes, int index)
 
- 
- 
- 
Method Detail- 
getBytespublic static byte[] getBytes(boolean x) 
 - 
getBytespublic static byte[] getBytes(char c) 
 - 
getBytespublic static byte[] getBytes(double x) 
 - 
getBytespublic static byte[] getBytes(short x) 
 - 
getBytespublic static byte[] getBytes(int x) 
 - 
getBytespublic static byte[] getBytes(long x) 
 - 
getBytespublic static byte[] getBytes(float x) 
 - 
getBytespublic static byte[] getBytes(String x) 
 - 
doubleToInt64Bitspublic static long doubleToInt64Bits(double x) 
 - 
int64BitsToDoublepublic static double int64BitsToDouble(long x) 
 - 
toInt16public static short toInt16(byte[] bytes, int index) throws IOException- Throws:
- IOException
 
 - 
toInt32public static int toInt32(byte[] bytes, int index) throws IOException- Throws:
- IOException
 
 - 
toUInt32public static long toUInt32(byte[] bytes, int index) throws IOException- Throws:
- IOException
 
 - 
toInt64public static long toInt64(byte[] bytes, int index) throws IOException- Throws:
- IOException
 
 - 
toSinglepublic static float toSingle(byte[] bytes, int index) throws IOException- Throws:
- IOException
 
 - 
toStringpublic static String toString(byte[] bytes) throws IOException - Throws:
- IOException
 
 - 
toBooleanpublic boolean toBoolean(byte[] bytes, int index) throws IOException- Throws:
- IOException
 
 - 
toCharpublic char toChar(byte[] bytes, int index) throws IOException- Throws:
- IOException
 
 - 
toDoublepublic double toDouble(byte[] bytes, int index) throws IOException- Throws:
- IOException
 
 
- 
 
-