code: private ByteBuffer byteArrayToByteBuffer(byte[] data) {
          ByteBuffer byteBuffer = ByteBuffer.wrap(data);
          if (sasFileProperties.getEndianness() == 0) {
              return byteBuffer;
          } else {
              return byteBuffer.order(ByteOrder.LITTLE_ENDIAN);
          }
      }
docs: The function to convert an array of bytes with any order of bytes into {@link ByteBuffer}.
  {@link ByteBuffer} has the order of bytes defined in the file located at the
  {@link SasFileConstants#ALIGN_2_OFFSET} offset.
  Later the parser converts result {@link ByteBuffer} into a number.
  
  @param data the input array of bytes with the little-endian or big-endian order.
  @return {@link ByteBuffer} with the order of bytes defined in the file located at
  the {@link SasFileConstants#ALIGN_2_OFFSET} offset.