|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sourceforge.beanindex.util.FileIntBuffer
This is an alternative for using ArrayList with Integer objects in it. This class uses a RandomAccessFile as a buffer
| Constructor Summary | |
FileIntBuffer(VirtualMemory vm)
|
|
| Method Summary | |
int |
get(int index)
reads the entry at the index |
int[] |
getData()
returns the data |
int |
length()
|
int |
write(int data)
writes one item into the buffer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileIntBuffer(VirtualMemory vm)
| Method Detail |
public int write(int data)
throws java.lang.Exception
data -
java.lang.Exception
public int[] getData()
throws java.lang.Exception
java.lang.Exception
public int get(int index)
throws java.lang.Exception
index -
java.lang.Exceptionpublic int length()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||