net.sf.rej.gui.hexeditor
Interface DataProvider

All Known Implementing Classes:
ByteArrayDataProvider

public interface DataProvider

An abstraction of the data used by the Hex Editor.

Author:
Sami Koivu

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.
 

Method Detail

get

byte get(int index)
Returns the byte in the given position.

Parameters:
index - the queried position.
Returns:
the byte in that position.

set

void set(int index,
         byte value)
Sets the byte in the given position.

Parameters:
index - the position to set.
value - new value for the byte.

getSize

int getSize()
Returns the size of the data in bytes.

Returns:
the size of the data abstracted by this interface.