de.aitools.aq.invertedindex.util
Class InvertedFileReader<V extends Value>

java.lang.Object
  extended by de.aitools.aq.invertedindex.util.InvertedFileReader<V>

public class InvertedFileReader<V extends Value>
extends java.lang.Object

This class reads records from a (pseudo-) inverted file.

Version:
$Id: InvertedFileReader.java,v 1.2 2010/10/15 15:30:15 trenkman Exp $
Author:
martin.trenkmann@uni-weimar.de

Constructor Summary
InvertedFileReader(java.io.File file)
           
InvertedFileReader(java.io.InputStream stream)
           
 
Method Summary
 void close()
           
 boolean read(Record<V> record)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvertedFileReader

public InvertedFileReader(java.io.InputStream stream)
                   throws java.io.IOException
Throws:
java.io.IOException

InvertedFileReader

public InvertedFileReader(java.io.File file)
                   throws java.io.FileNotFoundException,
                          java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

close

public void close()
           throws java.io.IOException
Throws:
java.io.IOException

read

public boolean read(Record<V> record)
             throws java.io.IOException,
                    Value.InvalidArgumentException
Throws:
java.io.IOException
Value.InvalidArgumentException