org.galagosearch.core.parse
Class TrecTextParser

java.lang.Object
  extended by org.galagosearch.core.parse.TrecTextParser
All Implemented Interfaces:
DocumentStreamParser

public class TrecTextParser
extends java.lang.Object
implements DocumentStreamParser

Author:
trevor

Constructor Summary
TrecTextParser(java.io.BufferedReader reader)
          Creates a new instance of TrecTextParser
 
Method Summary
 Document nextDocument()
           
 java.lang.String parseDocNumber()
           
 java.lang.String waitFor(java.lang.String tag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrecTextParser

public TrecTextParser(java.io.BufferedReader reader)
               throws java.io.FileNotFoundException,
                      java.io.IOException
Creates a new instance of TrecTextParser

Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

waitFor

public java.lang.String waitFor(java.lang.String tag)
                         throws java.io.IOException
Throws:
java.io.IOException

parseDocNumber

public java.lang.String parseDocNumber()
                                throws java.io.IOException
Throws:
java.io.IOException

nextDocument

public Document nextDocument()
                      throws java.io.IOException
Specified by:
nextDocument in interface DocumentStreamParser
Throws:
java.io.IOException


Copyright © 2009. All Rights Reserved.