|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.rej.gui.hexeditor.ByteArrayDataProvider
public class ByteArrayDataProvider
A DataProvider adapter for byte arrays.
| Constructor Summary | |
|---|---|
ByteArrayDataProvider(byte[] data)
Instanciates this provider to serve the given data. |
|
| Method Summary | |
|---|---|
byte |
get(int index)
Returns the byte in the given position. |
int |
getSize()
Returns the size of the data in bytes. |
void |
set(int index,
byte value)
Sets the byte in the given position. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteArrayDataProvider(byte[] data)
data - the data to be provided.| Method Detail |
|---|
public byte get(int index)
DataProvider
get in interface DataProviderindex - the queried position.
public int getSize()
DataProvider
getSize in interface DataProvider
public void set(int index,
byte value)
DataProvider
set in interface DataProviderindex - the position to set.value - new value for the byte.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||