|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.util.HexDump
public class HexDump
Hexdump class (well, it's actually a namespace with some functions, but let's stick with java terminology :-). These methods generate an output that resembles `hexdump -C` (Windows users: do you remember `debug` in the DOS age?).
Constructor Summary | |
---|---|
HexDump()
|
Method Summary | |
---|---|
static java.lang.String |
dump(byte[] data)
Dump a byte array in a String. |
static java.lang.String |
dump(byte[] data,
int off,
int len)
Dump a byte array in a String. |
static void |
dump(byte[] data,
int off,
int len,
java.io.OutputStream out)
Dump a byte array through a stream. |
static void |
dump(byte[] data,
java.io.OutputStream out)
Dump a byte array through a stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HexDump()
Method Detail |
---|
public static java.lang.String dump(byte[] data)
data
- Data to be dumpedpublic static java.lang.String dump(byte[] data, int off, int len)
data
- Data to be dumpedoff
- Offset from the beginning of data
len
- Number of bytes of data
to be dumpedpublic static void dump(byte[] data, java.io.OutputStream out) throws java.io.IOException
data
- Data to be dumpedout
- Output stream
java.io.IOException
public static void dump(byte[] data, int off, int len, java.io.OutputStream out) throws java.io.IOException
data
- Data to be dumpedoff
- Offset from the beginning of data
len
- Number of bytes of data
to be dumpedout
- Output stream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |