Protomatter Classes v1.1.6

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.


Constructor Summary
ByteDisplay()
           
 
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
 

Constructor Detail

ByteDisplay

public ByteDisplay()
Method Detail

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.

Protomatter Classes v1.1.6
Copyright 1998-2001 Nate Sammons

Protomatter Classes v1.1.6 http://protomatter.sourceforge.net/1.1.6