net.sf.juoserver.files
Class BaseIdxFileReader
java.lang.Object
net.sf.juoserver.files.BaseIdxFileReader
- All Implemented Interfaces:
- GenericFileReader<Integer,IdxFileEntry>, IdxFileReader
public class BaseIdxFileReader
- extends Object
- implements IdxFileReader
Base IdxFileReader acting as a bridge towards a specific
IdxFileEntryEncoder.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseIdxFileReader
public BaseIdxFileReader(File file,
int blockSize,
IdxFileEntryEncoder entryEncoder)
throws FileNotFoundException
- Throws:
FileNotFoundException
getAllEntries
public List<IdxFileEntry> getAllEntries()
- Specified by:
getAllEntries in interface IdxFileReader
- Returns:
- all the
IdxFileEntrys in the index file
getEntryAt
public IdxFileEntry getEntryAt(Integer index)
- Description copied from interface:
GenericFileReader
- Retrieves the output at the specified position
- Specified by:
getEntryAt in interface GenericFileReader<Integer,IdxFileEntry>- Specified by:
getEntryAt in interface IdxFileReader
- Parameters:
index - position
- Returns:
- the
IdxFileEntry at the specified position
Copyright © 2010-2012. All Rights Reserved.