byteblock
Class ByteBlock

java.lang.Object
  |
  +--byteblock.ByteBlock

public class ByteBlock
extends java.lang.Object

Defines a rectangular block of bytes; used as the base block for byte block windows.


Field Summary
 byte[] bytes
           
 int numCols
           
 int numRows
           
 
Constructor Summary
ByteBlock(int rows, int cols)
          Defines a new block of bytes with specified number of rows and columns.
ByteBlock(int rows, int cols, byte[] b)
          Defines a block of bytes with specified number of rows and columns, using the supplied byte array for initialization (copies the supplied array).
 
Method Summary
 java.lang.String toString()
          Returns hexadecimal representation of byte block (with newlines separating rows).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bytes

public byte[] bytes

numRows

public int numRows

numCols

public int numCols
Constructor Detail

ByteBlock

public ByteBlock(int rows,
                 int cols)
Defines a new block of bytes with specified number of rows and columns.

ByteBlock

public ByteBlock(int rows,
                 int cols,
                 byte[] b)
Defines a block of bytes with specified number of rows and columns, using the supplied byte array for initialization (copies the supplied array).
Method Detail

toString

public java.lang.String toString()
Returns hexadecimal representation of byte block (with newlines separating rows).
Overrides:
toString in class java.lang.Object