Class ByteUtilities


  • public class ByteUtilities
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteUtilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static double getDouble​(byte[] destination, int pos, java.nio.ByteOrder byteOrder)  
      static double getDoubleBigEndian​(byte[] destination, int pos)  
      static double getDoubleLittleEndian​(byte[] destination, int pos)  
      static float getFloat​(byte[] destination, int pos, java.nio.ByteOrder byteOrder)  
      static float getFloatBigEndian​(byte[] destination, int pos)  
      static float getFloatLittleEndian​(byte[] destination, int pos)  
      static int getInteger​(byte[] destination, int pos, java.nio.ByteOrder byteOrder)  
      static int getIntegerBigEndian​(byte[] destination, int pos)  
      static int getIntegerLittleEndian​(byte[] destination, int pos)  
      static short getShort​(byte[] destination, int pos, java.nio.ByteOrder byteOrder)  
      static short getShortLittleEndian​(byte[] destination, int pos)  
      static int setDouble​(double value, byte[] destination, int pos, java.nio.ByteOrder byteOrder)  
      static int setDoubleBigEndian​(double value, byte[] destination, int pos)  
      static int setDoubleLittleEndian​(double value, byte[] destination, int pos)  
      static int setFloat​(float value, byte[] destination, int pos, java.nio.ByteOrder byteOrder)  
      static int setFloatBigEndian​(float value, byte[] destination, int pos)  
      static int setFloatLittleEndian​(float value, byte[] destination, int pos)  
      static int setInteger​(int value, byte[] destination, int pos, java.nio.ByteOrder byteOrder)  
      static int setIntegerBigEndian​(int value, byte[] destination, int pos)  
      static int setIntegerLittleEndian​(int value, byte[] destination, int pos)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ByteUtilities

        public ByteUtilities()
    • Method Detail

      • getIntegerLittleEndian

        public static int getIntegerLittleEndian​(byte[] destination,
                                                 int pos)
      • getIntegerBigEndian

        public static int getIntegerBigEndian​(byte[] destination,
                                              int pos)
      • getInteger

        public static int getInteger​(byte[] destination,
                                     int pos,
                                     java.nio.ByteOrder byteOrder)
      • getShortLittleEndian

        public static short getShortLittleEndian​(byte[] destination,
                                                 int pos)
      • getShort

        public static short getShort​(byte[] destination,
                                     int pos,
                                     java.nio.ByteOrder byteOrder)
      • setIntegerLittleEndian

        public static int setIntegerLittleEndian​(int value,
                                                 byte[] destination,
                                                 int pos)
      • setIntegerBigEndian

        public static int setIntegerBigEndian​(int value,
                                              byte[] destination,
                                              int pos)
      • setInteger

        public static int setInteger​(int value,
                                     byte[] destination,
                                     int pos,
                                     java.nio.ByteOrder byteOrder)
      • getDoubleBigEndian

        public static double getDoubleBigEndian​(byte[] destination,
                                                int pos)
      • getDoubleLittleEndian

        public static double getDoubleLittleEndian​(byte[] destination,
                                                   int pos)
      • getDouble

        public static double getDouble​(byte[] destination,
                                       int pos,
                                       java.nio.ByteOrder byteOrder)
      • setDoubleBigEndian

        public static int setDoubleBigEndian​(double value,
                                             byte[] destination,
                                             int pos)
      • setDoubleLittleEndian

        public static int setDoubleLittleEndian​(double value,
                                                byte[] destination,
                                                int pos)
      • setDouble

        public static int setDouble​(double value,
                                    byte[] destination,
                                    int pos,
                                    java.nio.ByteOrder byteOrder)
      • getFloatBigEndian

        public static float getFloatBigEndian​(byte[] destination,
                                              int pos)
      • getFloatLittleEndian

        public static float getFloatLittleEndian​(byte[] destination,
                                                 int pos)
      • getFloat

        public static float getFloat​(byte[] destination,
                                     int pos,
                                     java.nio.ByteOrder byteOrder)
      • setFloatBigEndian

        public static int setFloatBigEndian​(float value,
                                            byte[] destination,
                                            int pos)
      • setFloatLittleEndian

        public static int setFloatLittleEndian​(float value,
                                               byte[] destination,
                                               int pos)
      • setFloat

        public static int setFloat​(float value,
                                   byte[] destination,
                                   int pos,
                                   java.nio.ByteOrder byteOrder)