|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.octet.util.StringFragmenter
StringFragmeter breaks a String up into
fragments. The fragmentation pattern is defined by a regular expression
passed to the constructor. This class is intended to be instantiated
and re-used in multiple string fragmentations to avoid re-compilation
of the regex.
| Constructor Summary | |
StringFragmenter(java.lang.String regex)
Creates a new StringFragmenter with the specified
regular expression. |
|
| Method Summary | |
java.lang.String[] |
fragment(java.lang.String string)
Returns a String array that is composed of the fragments of
string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringFragmenter(java.lang.String regex)
StringFragmenter with the specified
regular expression.
regex - the regular expression| Method Detail |
public java.lang.String[] fragment(java.lang.String string)
String array that is composed of the fragments of
string.
string - the string to fragment
|
The Octet Molecular Representation Framework v0.8.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||