Class ByteUtils


  • public final class ByteUtils
    extends java.lang.Object
    • Method Detail

      • toUnsigned

        public static short toUnsigned​(byte b)
        Deprecated.
        prefer unsignedPromote(...)
      • unsignedPromote

        public static int unsignedPromote​(byte b)
      • toHexAscii

        public static java.lang.String toHexAscii​(byte b)
      • toLowercaseHexAscii

        public static java.lang.String toLowercaseHexAscii​(byte b)
      • toHexAscii

        public static java.lang.String toHexAscii​(byte[] bytes)
      • toLowercaseHexAscii

        public static java.lang.String toLowercaseHexAscii​(byte[] bytes)
      • fromHexAscii

        public static byte[] fromHexAscii​(java.lang.String s)
                                   throws java.lang.NumberFormatException
        Throws:
        java.lang.NumberFormatException