public class TextFromFile
extends java.lang.Object
| Constructor and Description | 
|---|
| TextFromFile() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
public static java.lang.String getTextOrError(java.io.File file)
file - File from which to read the textpublic static java.lang.String getTextOrError(java.net.URL url)
url - Url from which to read the text