public class InputFilter
extends java.lang.Object
History:
| Modifier and Type | Method and Description |
|---|---|
static long |
GetInputCategory(java.lang.String inLine,
java.lang.String separator,
int fieldNum)
Get input category from the input line at a given field
|
static long |
GetInputInflection(java.lang.String inLine,
java.lang.String separator,
int fieldNum)
Get input inflection from the input line at a given field
|
static java.lang.String |
GetInputTerm(java.lang.String inLine,
java.lang.String separator,
int fieldNum)
Get input term from the input line at a given field
|
static boolean |
IsLegal(long legal,
long actual)
Check if the current category or inflection is legal
|
static boolean |
IsLegal(long legalCat,
long legalInfl,
long actualCat,
long actualInfl)
Check if the current inflection and category are legal and do not
need to be filter out
|
public static java.lang.String GetInputTerm(java.lang.String inLine,
java.lang.String separator,
int fieldNum)
inLine - a String value of the input lineseparator - a String value of field separatorfieldNum - the field number of the input termpublic static long GetInputCategory(java.lang.String inLine,
java.lang.String separator,
int fieldNum)
inLine - a String value of the input lineseparator - a String value of field separatorfieldNum - the field number of the input categorypublic static long GetInputInflection(java.lang.String inLine,
java.lang.String separator,
int fieldNum)
inLine - a String value of the input lineseparator - a String value of field separatorfieldNum - the field number of the input inflectionpublic static boolean IsLegal(long legalCat,
long legalInfl,
long actualCat,
long actualInfl)
legalCat - a long value for legal categorylegalInfl - a long value for legal inflectionactualCat - a long value for actual categoryactualInfl - a long value for actual inflectionpublic static boolean IsLegal(long legal,
long actual)
legal - a long value for legal valueactual - a long value for actual value