|
|||||||||
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(java.lang.String limiter)
|
Method Summary | |
---|---|
java.lang.String[] |
add(java.lang.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(java.lang.String limiter)
Method Detail |
---|
public java.lang.String[] add(java.lang.String str)
str
-
public void clear()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |