Klasse Hexdump

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

public final class Hexdump extends Object
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final char[]
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    static String
    format(byte[] _buf)
     
    static String
    format(byte[] _buf, int _width)
     
    static void
    print(byte[] _buf)
     
    static void
    print(byte[] _buf, int _width)
     
    static void
    print(byte[] _buf, int _width, PrintStream _out)
     
    static void
    print(byte[] _buf, PrintStream _out)
     
    static String
    toAscii(byte[] _buf)
     
    static String
    toAscii(byte[] _buf, int _ofs, int _len)
     
    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.
    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.
    static String
    toHex(byte[] _buf)
     
    static String
    toHex(byte[] _buf, boolean _spaces)
     
    static String
    toHex(byte[] _buf, int _ofs, int _len, boolean _spaces)
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • HEX_CHARS

      public static final char[] HEX_CHARS
  • 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