|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.embl.ebi.escience.utils.SimpleFile
public class SimpleFile
Simple file reading
| Constructor Summary | |
|---|---|
SimpleFile()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
readFile(java.io.File file)
Read a file and return the full content. |
static java.lang.String |
readFile(java.lang.String filename)
Read a file and return the full content. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleFile()
| Method Detail |
|---|
public static java.lang.String readFile(java.lang.String filename)
throws java.io.IOException
filename - Path to file to be opened.
java.io.IOException - If file is not found or cannot be read.
public static java.lang.String readFile(java.io.File file)
throws java.io.IOException
file - File to be opened
java.io.IOException - If file is not found or cannot be read.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||