java.lang.Object
org.freedesktop.dbus.utils.Hexdump
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic 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)
-
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
-