|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface File
An object that contains a handle to an uploaded file and supporting operations
| Method Summary | |
|---|---|
void |
close()
close the corresponding file and related resources |
boolean |
isOpen()
determine if the underlying file is currently open |
java.lang.String |
readContents()
read the entire contents of a file If a reader has not been instantiated then one will be and closed upon completion |
java.lang.String |
readLine()
read a line using the current reader If a reader has not been instantiated then one will be |
| Method Detail |
|---|
java.lang.String readLine()
throws java.io.IOException
String containing the content that was read
java.io.IOException
java.lang.String readContents()
throws java.io.IOException
String containing the content that was read
java.io.IOExceptionboolean isOpen()
boolean true if file is open, false if not
void close()
throws java.io.IOException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||