net.didion.jwnl.util
Class Grep

java.lang.Object
  extended by net.didion.jwnl.util.Grep

public class Grep
extends java.lang.Object

This is a utility class to find a pattern within a file, specifically the sense.idx file.

Author:
brett

Constructor Summary
Grep()
           
 
Method Summary
static java.util.List grep(java.lang.String synsetOffset)
          Search for occurrences in the given file of the offset, then find the appropriate lemma.
static java.lang.String grep(java.lang.String synsetOffset, java.lang.String lemma)
          Search for occurrences in the given file of the offset, then find the appropriate lemma.
static void setFile(java.io.File f)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grep

public Grep()
Method Detail

setFile

public static void setFile(java.io.File f)
                    throws java.io.IOException
Throws:
java.io.IOException

grep

public static java.util.List grep(java.lang.String synsetOffset)
                           throws java.io.IOException
Search for occurrences in the given file of the offset, then find the appropriate lemma.

Parameters:
f -
synsetOffset -
Returns:
Throws:
java.io.IOException

grep

public static java.lang.String grep(java.lang.String synsetOffset,
                                    java.lang.String lemma)
                             throws java.io.IOException
Search for occurrences in the given file of the offset, then find the appropriate lemma.

Parameters:
f -
synsetOffset -
Returns:
Throws:
java.io.IOException