|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFileList<T>
ListFile a List
view to a random access file.
Note!
- IOException
s are wrapped around RuntimeIOException
.
- The use of this class is not multi-thread safe.
Method Summary | |
---|---|
void |
close()
Close the file |
Binding |
getBinding()
Get class-data type binding |
java.io.File |
getFile()
Get the mapped file |
void |
removeRange(int fromIndex,
int toIndex)
Removes from this list all of the elements whose index is between fromIndex , inclusive, and toIndex , exclusive. |
Methods inherited from interface java.util.List |
---|
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Method Detail |
---|
java.io.File getFile()
Binding getBinding()
void removeRange(int fromIndex, int toIndex)
fromIndex
, inclusive, and toIndex
, exclusive.
Shifts any succeeding elements to the left (reduces their index). This
call shortens the List by (toIndex - fromIndex)
elements.
(If toIndex==fromIndex
, this operation has no effect.)
fromIndex
- the index of the first element to removed.toIndex
- index after last element to be removed (exculsive).
java.lang.UnsupportedOperationException
- if the remove
method is
not supported by this list.
java.lang.IndexOutOfBoundsException
- if the index is out of range (index
< 0 || index + count >= size()).void close() throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |