private static String tohex(byte b) {
    if (b == 0)
      return "0";
    else if (b == 1)
      return "1";
    else if (b == 2)
      return "2";
    else if (b == 3)
      return "3";
    else if (b == 4)
      return "4";
    else if (b == 5)
      return "5";
    else if (b == 6)
      return "6";
    else if (b == 7)
      return "7";
    else if (b == 8)
      return "8";
    else if (b == 9)
      return "9";
    else if (b == 10)
      return "a";
    else if (b == 11)
      return "b";
    else if (b == 12)
      return "c";
    else if (b == 13)
      return "d";
    else if (b == 14)
      return "e";
    else if (b == 15)
      return "f";
    throw new IllegalArgumentException("we should never be here");
  }
Utility class for dealing with byte strings

@author Stan Love
@version 0.0.1
olv-vfs/src/main/java/net/sf/vfsjfilechooser/accessories/bookmarks/Util.java