Klasse Hexdump

java.lang.Object
org.freedesktop.dbus.utils.Hexdump

public final class Hexdump extends Object
  • Methodendetails

    • toHex

      public static String toHex(byte[] _buf)
    • toHex

      public static String toHex(byte[] _buf, boolean _spaces)
    • toHex

      public static String toHex(byte[] _buf, int _ofs, int _len, boolean _spaces)
    • toAscii

      public static String toAscii(byte[] _buf)
    • toAscii

      public static String toAscii(byte[] _buf, int _ofs, int _len)
    • format

      public static String format(byte[] _buf)
    • format

      public static String format(byte[] _buf, int _width)
    • print

      public static void print(byte[] _buf)
    • print

      public static void print(byte[] _buf, int _width)
    • print

      public static void print(byte[] _buf, int _width, PrintStream _out)
    • print

      public static void print(byte[] _buf, PrintStream _out)
    • toByteArray

      public static String toByteArray(byte[] _buf)
      Returns a string which can be written to a Java source file as part of a static initializer for a byte array. Returns data in the format 0xAB, 0xCD, .... use like: javafile.print("byte[] data = {") javafile.print(Hexdump.toByteArray(data)); javafile.println("};"); * @param buf
      Parameter:
      _buf - buffer
      Gibt zurück:
      string
    • toByteArray

      public static String toByteArray(byte[] _buf, int _ofs, int _len)
      Returns a string which can be written to a Java source file as part of a static initializer for a byte array. Returns data in the format 0xAB, 0xCD, .... use like: javafile.print("byte[] data = {") javafile.print(Hexdump.toByteArray(data)); javafile.println("};");
      Parameter:
      _buf - buffer
      _ofs - offset
      _len - length
      Gibt zurück:
      string