net.sf.juoserver.files
Class BaseIdxFileReader

java.lang.Object
  extended by 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.


Constructor Summary
BaseIdxFileReader(File file, int blockSize, IdxFileEntryEncoder entryEncoder)
           
 
Method Summary
 List<IdxFileEntry> getAllEntries()
           
 IdxFileEntry getEntryAt(Integer index)
          Retrieves the output at the specified position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseIdxFileReader

public BaseIdxFileReader(File file,
                         int blockSize,
                         IdxFileEntryEncoder entryEncoder)
                  throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

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.