|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--byteblock.ByteBlockWindow | +--byteblock.ByteBlockRectangularWindow
A rectangular window into a byte block.
Field Summary | |
protected int |
baseStartIndex
|
protected int |
numCols
|
protected int |
numRows
|
Fields inherited from class byteblock.ByteBlockWindow |
baseBlock |
Constructor Summary | |
ByteBlockRectangularWindow(ByteBlock block)
Create a window based on an existing base block, with the same number of rows and columns. |
|
ByteBlockRectangularWindow(int baseStartIndex,
int numRows,
int numCols,
ByteBlock block)
Create a window into the specified base block, with specified number of rows and columns, and starting at specified index of the base block. |
Method Summary | |
void |
clearBytes()
Set all bytes in window to 0x00. |
void |
clearBytes(int startIndex,
int endIndex)
Set all bytes in window from (and including) startByte to (and excluding) endByte to 0x00. |
byte[] |
getBytes()
Return the sequence of bytes in the window. |
byte[] |
getBytes(int startIndex,
int endIndex)
Return the sequence of bytes in the window between the specified indices. |
int |
getSize()
Return the total number of bytes in the window (= numRows * numCols). |
java.lang.String |
toHexString()
Return a String representing the bytes in the window, without spaces between bytes. |
java.lang.String |
toHexString(int startIndex,
int endIndex)
Return a String representing the bytes in the window between the specified indices, without spaces between bytes. |
java.lang.String |
toString()
Return a String representing the bytes in the window, with spaces between pairs of hex digits. |
java.lang.String |
toString(int startIndex,
int endIndex)
Return a String representing the bytes in the window between the specified indices, with spaces between pairs of hex digits. |
void |
writeBytes(byte[] byteString)
Write the sequence of bytes supplied into the window, starting from the beginning. |
void |
writeBytes(int startIndex,
byte[] byteString)
Write a sequence of bytes into the window, starting at the specified index. |
Methods inherited from class byteblock.ByteBlockWindow |
getHex |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected int numRows
protected int numCols
protected int baseStartIndex
Constructor Detail |
public ByteBlockRectangularWindow(ByteBlock block)
public ByteBlockRectangularWindow(int baseStartIndex, int numRows, int numCols, ByteBlock block)
Method Detail |
public int getSize()
getSize
in class ByteBlockWindow
public byte[] getBytes()
getBytes
in class ByteBlockWindow
public byte[] getBytes(int startIndex, int endIndex)
public void clearBytes()
clearBytes
in class ByteBlockWindow
public void clearBytes(int startIndex, int endIndex)
public void writeBytes(byte[] byteString)
writeBytes
in class ByteBlockWindow
public void writeBytes(int startIndex, byte[] byteString)
public java.lang.String toString()
toString
in class ByteBlockWindow
public java.lang.String toString(int startIndex, int endIndex)
public java.lang.String toHexString()
toHexString
in class ByteBlockWindow
public java.lang.String toHexString(int startIndex, int endIndex)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |