Class ByteUtils

java.lang.Object
com.mchange.lang.ByteUtils

public final class ByteUtils extends Object
  • Field Details

  • Method Details

    • toUnsigned

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

      public static int unsignedPromote(byte b)
    • toHexAscii

      public static String toHexAscii(byte b)
    • toLowercaseHexAscii

      public static String toLowercaseHexAscii(byte b)
    • toHexAscii

      public static String toHexAscii(byte[] bytes)
    • toLowercaseHexAscii

      public static String toLowercaseHexAscii(byte[] bytes)
    • fromHexAscii

      public static byte[] fromHexAscii(String s) throws NumberFormatException
      Throws:
      NumberFormatException