|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nih.nlm.nls.tc.Jdi.Contractions
public class Contractions
This class is to read contractions and expansion from a flat file.
History:
Constructor Summary | |
---|---|
Contractions(java.lang.String inFile)
Create the Contractions list object by specifying the input file. |
|
Contractions(java.lang.String inFile,
boolean verbose)
Create the Contractions list object by specifying the input file. |
Method Summary | |
---|---|
java.util.Hashtable<java.lang.String,java.lang.String> |
GetContractions()
Get the collection object (in hashtable) of contractions with key in contractions and value in expansions. |
java.lang.String |
GetExpansion(java.lang.String contractionStr)
Get the expansion by specifying the contractions. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Contractions(java.lang.String inFile)
inFile
- file name of contractions (contractions.txt)public Contractions(java.lang.String inFile, boolean verbose)
inFile
- file name of contractions (contractions.txt)verbose
- flag of verbose on reading input fileMethod Detail |
---|
public java.util.Hashtable<java.lang.String,java.lang.String> GetContractions()
public java.lang.String GetExpansion(java.lang.String contractionStr)
contractionStr
- contraction in string
public static void main(java.lang.String[] args)
|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |