|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectRomsList
This class encapsulates a directory filled of NES ROMs and provides methods for handling these ROMs.
Constructor Summary | |
RomsList(java.lang.String dir)
Class constructor. |
Method Summary | |
java.lang.String |
romFileName(int index)
Returns the file name (plus extension, without the path) of the ROM pointed by index. |
java.lang.String |
romFullFileName(int index)
Returns the full file name (plus path and extension) of the ROM pointed by index. |
void |
romReadData(int index,
byte[] data)
This methos reads the ROM's content to the array data[]. |
int |
romsCount()
Returns the roms count in the list. |
long |
romSize(int index)
Returns the size (in bytes) of the ROM pointed by index. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RomsList(java.lang.String dir)
dir
- Directory that contains the ROMS.Method Detail |
public long romSize(int index)
index
- The ROM index. It can be a value from 0 to romsCount()-1.
public java.lang.String romFileName(int index)
index
- The ROM index. It can be a value from 0 to romsCount()-1.
public java.lang.String romFullFileName(int index)
index
- The ROM index. It can be a value from 0 to romsCount()-1.
public int romsCount()
public void romReadData(int index, byte[] data)
index
- The ROM index. It can be a value from 0 to romsCount()-1.data
- The array which will receive the ROM's data. It must be allocated before calling
this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |