|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartisynth.core.util.TextFromFile
public class TextFromFile
Reads text in from a file an returns it as a String.
Constructor Summary | |
---|---|
TextFromFile()
|
Method Summary | |
---|---|
static java.lang.String |
getTextOrError(java.io.File file)
Reads the contents of a file and returns them as a String. |
static java.lang.String |
getTextOrError(java.net.URL url)
Reads the contents of a URL and returns them as a String. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextFromFile()
Method Detail |
---|
public static java.lang.String getTextOrError(java.io.File file)
file
- File from which to read the text
public static java.lang.String getTextOrError(java.net.URL url)
url
- Url from which to read the text
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |