|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.util.HexDump
public abstract class HexDump
Hexadecimal dump utility methods.
HexDumper
Field Summary | |
---|---|
static int |
VERS
Class version number. |
Method Summary | |
---|---|
static void |
hexDump(java.io.InputStream in,
java.io.PrintStream out)
Print the contents of an input stream as a hexadecimal dump to an output stream. |
static void |
hexDump(java.io.InputStream in,
java.io.PrintWriter out)
Print the contents of an input stream as a hexadecimal dump to an output stream. |
static void |
hexDump(java.io.PrintStream out,
byte[] data)
Print the contents of a byte array as a hexadecimal dump to an output stream. |
static void |
hexDump(java.io.PrintStream out,
byte[] data,
int off,
int len)
Print the contents of a byte array as a hexadecimal dump to an output stream. |
static void |
hexDump(java.io.PrintStream out,
java.lang.String s)
Print the contents of a string as a hexadecimal dump to an output stream. |
static void |
hexDump(java.io.PrintStream out,
java.lang.String s,
int off,
int len)
Print the contents of a string as a hexadecimal dump to an output stream. |
static void |
hexDump(java.io.PrintWriter out,
byte[] data)
Print the contents of a byte array as a hexadecimal dump to an output stream. |
static void |
hexDump(java.io.PrintWriter out,
byte[] data,
int off,
int len)
Print the contents of a byte array as a hexadecimal dump to an output stream. |
static void |
hexDump(java.io.PrintWriter out,
java.lang.String s)
Print the contents of a string as a hexadecimal dump to an output stream. |
static void |
hexDump(java.io.PrintWriter out,
java.lang.String s,
int off,
int len)
Print the contents of a string as a hexadecimal dump to an output stream. |
static void |
hexDumpAt(java.io.PrintWriter out,
byte[] data,
int off,
int len,
int base)
Print the contents of a byte array as a hexadecimal dump to an output stream. |
static void |
hexDumpStringAt(java.io.PrintWriter out,
java.lang.String data,
int off,
int len,
int base)
Print the contents of a string as a hexadecimal dump to an output stream. |
static void |
main(java.lang.String[] args)
Print the contents of one or more files as a hexadecimal dump to the standard output stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VERS
Method Detail |
---|
public static void hexDump(java.io.PrintWriter out, byte[] data)
This method is equivalent to:
hexDump(out, data, 0, data.length);
out
- An output stream.data
- An array of bytes to dump to out.public static void hexDump(java.io.PrintWriter out, byte[] data, int off, int len)
out
- An output stream.data
- An array of bytes to dump to out.off
- The index of the first byte within the byte array to dump.len
- The number of bytes within the byte array to dump.public static void hexDump(java.io.PrintStream out, byte[] data)
This method is equivalent to:
hexDump(out, data, 0, data.length);
out
- An output stream.data
- An array of bytes to dump to out.public static void hexDump(java.io.PrintStream out, byte[] data, int off, int len)
out
- An output stream.data
- An array of bytes to dump to out.off
- The index of the first byte within the byte array to dump.len
- The number of bytes within the byte array to dump.public static void hexDump(java.io.PrintWriter out, java.lang.String s)
This method is equivalent to:
hexDump(out, s, 0, s.length());
out
- An output stream.s
- A string of Unicode characters to dump to out.public static void hexDump(java.io.PrintWriter out, java.lang.String s, int off, int len)
out
- An output stream.off
- The index of the first character within the string to dump.len
- The number of bytes within the byte array to dump.s
- A string of Unicode characters to dump to out.public static void hexDump(java.io.PrintStream out, java.lang.String s)
This method is equivalent to:
hexDump(out, s, 0, s.length());
out
- An output stream.s
- A string of Unicode characters to dump to out.public static void hexDump(java.io.PrintStream out, java.lang.String s, int off, int len)
out
- An output stream.off
- The index of the first character within the string to dump.len
- The number of bytes within the byte array to dump.s
- A string of Unicode characters to dump to out.public static void hexDump(java.io.InputStream in, java.io.PrintWriter out)
Note that any IOException
s thrown while reading from the
input stream or writing to the output stream are ignored.
in
- An input (byte) stream.
Note that this stream is not closed after reading its contents.out
- An output stream.public static void hexDump(java.io.InputStream in, java.io.PrintStream out)
Note that any IOException
s thrown while reading from the
input stream or writing to the output stream are ignored.
in
- An input (byte) stream.
Note that this stream is not closed after reading its contents.out
- An output stream.public static void hexDumpAt(java.io.PrintWriter out, byte[] data, int off, int len, int base)
out
- An output stream.data
- An array of bytes to dump to out.off
- The index of the first byte within the byte array to dump.len
- The number of bytes within the byte array to dumpbase
- The base address to assume in the printed dump.public static void hexDumpStringAt(java.io.PrintWriter out, java.lang.String data, int off, int len, int base)
out
- An output stream.data
- A string of Unicode characters to dump to out.off
- The index of the first byte within the byte array to dump.len
- The number of bytes within the byte array to dumpbase
- The base address to assume in the printed dump.public static void main(java.lang.String[] args)
Usage
java tribble.util.HexDump file...
args
- Command line arguments (filenames to dump).
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |