anl.aida.core
Class STCReader

java.lang.Object
  extended by anl.aida.core.STCReader

public class STCReader
extends java.lang.Object

Reads a ScoredTermsCollection from a file written by a STCWriter.


Constructor Summary
STCReader()
           
 
Method Summary
 ScoredTermsCollection readCollection(java.lang.String file)
          Reads and returns a StoredTermsCollection written by a STCWriter.
 STCHeader readHeader(java.lang.String file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STCReader

public STCReader()
Method Detail

readHeader

public STCHeader readHeader(java.lang.String file)
                     throws java.io.IOException
Throws:
java.io.IOException

readCollection

public ScoredTermsCollection readCollection(java.lang.String file)
                                     throws java.io.IOException,
                                            AIDAException
Reads and returns a StoredTermsCollection written by a STCWriter.

Parameters:
file - the path of the file to read
Returns:
the StoredTermsCollection created from the file.
Throws:
java.io.IOException - if there is an error reading the file.
AIDAException - if there is an error reading the file.