|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.Files
public class Files
| Method Summary | |
|---|---|
static java.lang.String |
read(java.io.File file)
Reads a file to a String. |
static void |
write(java.io.File file,
java.lang.String content)
Writes a String to a given file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void write(java.io.File file,
java.lang.String content)
throws java.io.IOException
file - The file to write to.content - The text to write to the given file.
java.io.IOException - Thrown on IO errors.
public static java.lang.String read(java.io.File file)
throws java.io.IOException
file - The file to read from.
java.io.IOException - Thrown on IO errors.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||