|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclassycle.util.Text
public class Text
Collection of useful static method concerning string manipulation.
Method Summary | |
---|---|
static java.lang.String |
excapeForXML(java.lang.String text)
Escapes special XML characters in the specified text. |
static java.lang.String |
readTextFile(java.io.File file)
Reads multi-line text from the specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String excapeForXML(java.lang.String text)
text
- Text to be escaped. Must be not null.
public static java.lang.String readTextFile(java.io.File file) throws java.io.IOException
file
- Text file.
java.io.IOException
- if some reading error occurs.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |