|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jstacs.io.SymbolExtractor
public class SymbolExtractor
This class enables you to extract elements form a given string similar to an StringTokenizer.
The class has some special functionalities that are not given be a StringTokenizer:
null. (In this case the characters of the string are
returned.)
| Constructor Summary | |
|---|---|
SymbolExtractor(String delim)
Creates a new instance using delim as delimiter. |
|
SymbolExtractor(String string,
String delim)
Creates a new instance using delim as delimiter and string as string to be parsed. |
|
| Method Summary | |
|---|---|
int |
countElements()
Counts the number of elements that can initially be received. |
static int |
filter(String inFile,
char ignore,
AlphabetContainer con,
int minLength,
String outFile)
This method allows the user to filter a file using a given alphabet container and a minimal sequence length. |
boolean |
hasMoreElements()
|
String |
nextElement()
|
void |
setStringToBeParsed(String string)
Sets a new string to be parsed. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SymbolExtractor(String delim)
delim as delimiter. Before invoking other methods one has to use
setStringToBeParsed(String)
delim - the delimitersetStringToBeParsed(String)public SymbolExtractor(String string, String delim)
delim as delimiter and string as string to be parsed.
string - the string to be parseddelim - delimiter| Method Detail |
|---|
public void setStringToBeParsed(String string)
string - the string to be parsedpublic int countElements()
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<String>public String nextElement()
nextElement in interface Enumeration<String>public static int filter(String inFile, char ignore, AlphabetContainer con, int minLength, String outFile) throws IOException
inFile - the input fileignore - the char for comment linescon - the alpgabet containerminLength - the minimal length of a sequence in the output fileoutFile - the output file
IOException - if something with the file handling went wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||