|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.msu.cme.rdp.classifier.train.GoodWordIterator
public class GoodWordIterator
A GoodWordIterator creates a list of valid words from the input string.
Field Summary | |
---|---|
private static int[] |
charIntegerLookup
|
private int |
curIndex
|
(package private) static int |
MASK
|
(package private) static int |
MAX_ASCII
|
private int |
numOfWords
|
private int[] |
wordIndexArr
|
(package private) static int |
WORDSIZE
|
Constructor Summary | |
---|---|
GoodWordIterator(java.lang.String seq)
Creates a new instance of GoodWordIterator |
Method Summary | |
---|---|
private void |
createWordIndex(java.lang.String seq)
Fetches every overlapping word, change the string to integer and saves in an array. |
(package private) int |
getMask()
Returns the mask. |
(package private) int |
getNumofWords()
Returns the number of unique words. |
(package private) int |
getWordsize()
Returns the size of word. |
boolean |
hasNext()
Returns true if the iteration has more good element on deck. |
int |
next()
Returns the next good element in the iteration. |
(package private) void |
resetCurIndex()
Reset the current index to 0. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int curIndex
private int numOfWords
private int[] wordIndexArr
static final int WORDSIZE
static final int MASK
static final int MAX_ASCII
private static int[] charIntegerLookup
Constructor Detail |
---|
public GoodWordIterator(java.lang.String seq) throws java.io.IOException
java.io.IOException
Method Detail |
---|
public boolean hasNext()
public int next() throws java.util.NoSuchElementException
java.util.NoSuchElementException
private void createWordIndex(java.lang.String seq) throws java.io.IOException
java.io.IOException
int getWordsize()
int getMask()
int getNumofWords()
void resetCurIndex()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |