com.protomatter.util
Class ByteDisplay
java.lang.Object
|
+--com.protomatter.util.ByteDisplay
- public class ByteDisplay
- extends java.lang.Object
A binary data printer. This is basically a pretty-printer for
binary data.
Method Summary |
static java.lang.String |
displayBytes(byte[] b)
Display the given byte array. |
static java.lang.String |
displayBytes(byte[] b,
int off,
int len)
Display the given byte array, starting at the given offset
and ending after the given length. |
static java.lang.String |
displayBytes(int b)
Display the given byte. |
static void |
main(java.lang.String[] args)
Display a file's contents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ByteDisplay
public ByteDisplay()
displayBytes
public static java.lang.String displayBytes(int b)
- Display the given byte.
displayBytes
public static java.lang.String displayBytes(byte[] b)
- Display the given byte array.
displayBytes
public static java.lang.String displayBytes(byte[] b,
int off,
int len)
- Display the given byte array, starting at the given offset
and ending after the given length.
main
public static void main(java.lang.String[] args)
- Display a file's contents. Takes the first command-line
argument as the name of the file to display.