org.egothor.robot.index
Class TermsFastReader

java.lang.Object
  extended by org.egothor.robot.index.TermsFastReader
All Implemented Interfaces:
Sequence<IListReader>, SequenceWithClose<IListReader>

public class TermsFastReader
extends java.lang.Object
implements SequenceWithClose<IListReader>

TermsFastReader.java Created on August 15, 2005, 2:13 AM

Author:
galambos

Constructor Summary
protected TermsFastReader(java.lang.String location)
          Constructor for the DiscKeyIndexDataReader object.
 
Method Summary
 void close()
          Close the terms file.
 IListMetadataRead next()
          Return an IListMeta object.
 IListMetadataRead readData()
          Constructs a new org.egothor.store.disc.IListMeta.
 void rewind()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermsFastReader

protected TermsFastReader(java.lang.String location)
                   throws java.io.IOException
Constructor for the DiscKeyIndexDataReader object. It opens the terms file in the given directory for reading.

Parameters:
location - the directory holding the file to be read
Throws:
java.io.IOException - if an I/O error occurs
java.io.IOException - if an I/O error occurs
Method Detail

rewind

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

close

public void close()
Close the terms file.

Specified by:
close in interface SequenceWithClose<IListReader>

next

public IListMetadataRead next()
Return an IListMeta object.

Specified by:
next in interface Sequence<IListReader>
Returns:
an IListMeta object

readData

public IListMetadataRead readData()
                           throws java.io.IOException
Constructs a new org.egothor.store.disc.IListMeta. That object is read from the input stream.

Returns:
an IListMeta object
Throws:
java.io.IOException - if an I/O error occurs