|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.utils.StringCutter
public class StringCutter
You will stuff strings into the object and it will check whether the 'limiter' is present. If so, it will cut the string buffer along the 'limiter' and return you the parts.
Constructor Summary | |
---|---|
StringCutter()
Default limiter is "\r\n" (windows new line). |
|
StringCutter(String limiter)
|
Method Summary | |
---|---|
String[] |
add(String str)
Adding string to the buffer, returning strings if 'limiter' is found. |
void |
clear()
Clear the string buffer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringCutter()
public StringCutter(String limiter)
Method Detail |
---|
public String[] add(String str)
str
-
public void clear()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |