net.sf.juoserver.files
Class MulFileReader<T>

java.lang.Object
  extended by net.sf.juoserver.files.MulFileReader<T>
Type Parameters:
T - type of the object to be retrieved from the data file
All Implemented Interfaces:
GenericFileReader<IdxFileEntry,T>, IndexedFileReader<T>

public class MulFileReader<T>
extends Object
implements IndexedFileReader<T>

MUL (data) files IndexedFileReader acting as a bridge towards a specific IdxFileReader and GenericFileEntryEncoder.


Constructor Summary
MulFileReader(File file, IdxFileReader idxFileReader, GenericFileEntryEncoder<T> encoder)
           
 
Method Summary
 List<T> getAllEntries()
          Retrieves all the outputs in the file.
 T getEntryAt(IdxFileEntry entry)
          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

MulFileReader

public MulFileReader(File file,
                     IdxFileReader idxFileReader,
                     GenericFileEntryEncoder<T> encoder)
              throws FileNotFoundException
Throws:
FileNotFoundException
Method Detail

getAllEntries

public List<T> getAllEntries()
Description copied from interface: IndexedFileReader
Retrieves all the outputs in the file.

Specified by:
getAllEntries in interface IndexedFileReader<T>
Returns:
all the outputs in the index file

getEntryAt

public T getEntryAt(IdxFileEntry entry)
Description copied from interface: GenericFileReader
Retrieves the output at the specified position

Specified by:
getEntryAt in interface GenericFileReader<IdxFileEntry,T>
Parameters:
entry - position
Returns:
the output at the specified position


Copyright © 2010-2012. All Rights Reserved.