com.googlecode.jweb1t
Class FileSearch

java.lang.Object
  extended by com.googlecode.jweb1t.FileSearch

public class FileSearch
extends Object

Implements the actual (binary) search for an ngram in a Web1T-format file.

Author:
Claudio Giuliano, Torsten Zesch

Constructor Summary
FileSearch(File file)
           
 
Method Summary
 void close()
           
 long getFreq(String aSymbol)
           
 int getWindowSize()
           
 String[] read(long pos)
           
 void setWindowSize(int aWindowSize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSearch

public FileSearch(File file)
           throws IOException
Throws:
IOException
Method Detail

setWindowSize

public void setWindowSize(int aWindowSize)

getWindowSize

public int getWindowSize()

close

public void close()
           throws IOException
Throws:
IOException

getFreq

public long getFreq(String aSymbol)
             throws IOException
Throws:
IOException

read

public String[] read(long pos)
              throws IOException
Throws:
IOException


Copyright © 2012. All Rights Reserved.