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.
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 |
bytes
public byte[] bytes
numRows
public int numRows
numCols
public int numCols
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).
toString
public java.lang.String toString()
- Returns hexadecimal representation of byte block (with newlines
separating rows).
- Overrides:
toString
in class java.lang.Object