com.googlecode.jweb1t
Class FileSearch
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileSearch
public FileSearch(File file)
throws IOException
- Throws:
IOException
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.