|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpalmed.file.File
public final class File
This class represents a file on the file system.
| Constructor Summary | |
|---|---|
File(java.lang.String path)
Create a file. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object object)
|
boolean |
exists()
Test if the file exists. |
int |
hashCode()
|
java.io.InputStream |
openInputStream()
Open an input stream. |
java.io.OutputStream |
openOutputStream()
Open an output stream. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public File(java.lang.String path)
path - the absolute file path.| Method Detail |
|---|
public java.io.InputStream openInputStream()
throws java.io.IOException
The stream must be closed after being used.
openInputStream in interface IFilejava.io.IOException - an io exception occured
public java.io.OutputStream openOutputStream()
throws java.io.IOException
The stream must be closed after being used.
openOutputStream in interface IFilejava.io.IOException - an io exception occuredpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean exists()
exists in interface IFile
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||