gate.creole.annic.lucene
Class LuceneReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.BufferedReader
          extended by gate.creole.annic.lucene.LuceneReader
All Implemented Interfaces:
Closeable, Readable

public class LuceneReader
extends BufferedReader

A Reader that stores the document to read and the token stream associated with it.

Author:
niraj

Field Summary
(package private)  Document gateDoc
          Gate document
(package private)  ArrayList tokenStream
          Token Stream.
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
LuceneReader(Document gateDoc, ArrayList tokenStream)
          Constructor
 
Method Summary
 Document getDocument()
          Gets the document object
 ArrayList getTokenStream()
          Gets the token stream associated with this reader
 
Methods inherited from class java.io.BufferedReader
close, mark, markSupported, read, read, readLine, ready, reset, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gateDoc

Document gateDoc
Gate document


tokenStream

ArrayList tokenStream
Token Stream.

Constructor Detail

LuceneReader

public LuceneReader(Document gateDoc,
                    ArrayList tokenStream)
Constructor

Parameters:
gateDoc -
tokenStream -
Method Detail

getDocument

public Document getDocument()
Gets the document object

Returns:

getTokenStream

public ArrayList getTokenStream()
Gets the token stream associated with this reader

Returns: