Class ByteUtils


  • public final class ByteUtils
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static byte[] bytes  
      (package private) static boolean HighPrecision  
      private static byte[] negOne  
      private static byte[] one  
      private static byte[] zero  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] getIsoBytes​(byte pre, java.lang.String text)  
      static byte[] getIsoBytes​(byte pre, java.lang.String text, byte post)  
      static byte[] getIsoBytes​(double d)  
      (package private) static byte[] getIsoBytes​(double d, ByteBuffer buffer)  
      (package private) static byte[] getIsoBytes​(double d, ByteBuffer buffer, boolean highPrecision)  
      static byte[] getIsoBytes​(int n)  
      (package private) static byte[] getIsoBytes​(int n, ByteBuffer buffer)  
      static byte[] getIsoBytes​(java.lang.String text)  
      private static int intSize​(int l)  
      private static int longSize​(long l)  
      • Methods inherited from class java.lang.Object

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

      • HighPrecision

        static boolean HighPrecision
      • bytes

        private static final byte[] bytes
      • zero

        private static final byte[] zero
      • one

        private static final byte[] one
      • negOne

        private static final byte[] negOne
    • Constructor Detail

      • ByteUtils

        public ByteUtils()
    • Method Detail

      • getIsoBytes

        public static byte[] getIsoBytes​(java.lang.String text)
      • getIsoBytes

        public static byte[] getIsoBytes​(byte pre,
                                         java.lang.String text)
      • getIsoBytes

        public static byte[] getIsoBytes​(byte pre,
                                         java.lang.String text,
                                         byte post)
      • getIsoBytes

        public static byte[] getIsoBytes​(int n)
      • getIsoBytes

        public static byte[] getIsoBytes​(double d)
      • getIsoBytes

        static byte[] getIsoBytes​(int n,
                                  ByteBuffer buffer)
      • getIsoBytes

        static byte[] getIsoBytes​(double d,
                                  ByteBuffer buffer)
      • getIsoBytes

        static byte[] getIsoBytes​(double d,
                                  ByteBuffer buffer,
                                  boolean highPrecision)
      • longSize

        private static int longSize​(long l)
      • intSize

        private static int intSize​(int l)