java.lang.Object
org.freedesktop.dbus.utils.Hexdump
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic Stringformat(byte[] _buf) static Stringformat(byte[] _buf, int _width) static voidprint(byte[] _buf) static voidprint(byte[] _buf, int _width) static voidprint(byte[] _buf, int _width, PrintStream _out) static voidprint(byte[] _buf, PrintStream _out) static StringtoAscii(byte[] _buf) static StringtoAscii(byte[] _buf, int _ofs, int _len) static StringtoByteArray(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 StringtoByteArray(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 StringtoHex(byte[] _buf) static StringtoHex(byte[] _buf, boolean _spaces) static StringtoHex(byte[] _buf, int _ofs, int _len, boolean _spaces)
-
Methodendetails
-
toHex
-
toHex
-
toHex
-
toAscii
-
toAscii
-
format
-
format
-
print
public static void print(byte[] _buf) -
print
public static void print(byte[] _buf, int _width) -
print
-
print
-
toByteArray
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
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
-