|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.progeeks.util.StringUtils
public class StringUtils
Utilities for loading and manipulating strings.
Constructor Summary | |
---|---|
StringUtils()
|
Method Summary | |
---|---|
static java.lang.String |
detectIndent(java.lang.String s)
Attempts to detect the current indent by looking at the last line of the text. |
static java.lang.String |
readFile(java.io.File f)
Loads the contents of the specified file as a string and returns it. |
static java.lang.String |
readString(java.io.Reader r)
Loads the contents of the specified reader as a string and returns it. |
static java.lang.String |
readStringResource(java.lang.Class c,
java.lang.String resource)
Loads the contents of the specified resource as a string and returns it. |
static void |
writeFile(java.lang.String s,
java.io.File f)
Writes the string to the specified file. |
static void |
writeString(java.lang.String s,
java.io.Writer out)
Writes the string data to the specified writer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringUtils()
Method Detail |
---|
public static java.lang.String detectIndent(java.lang.String s)
public static java.lang.String readStringResource(java.lang.Class c, java.lang.String resource) throws java.io.IOException
java.io.IOException
public static java.lang.String readString(java.io.Reader r) throws java.io.IOException
java.io.IOException
public static java.lang.String readFile(java.io.File f) throws java.io.IOException
java.io.IOException
public static void writeString(java.lang.String s, java.io.Writer out) throws java.io.IOException
java.io.IOException
public static void writeFile(java.lang.String s, java.io.File f) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |