|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Controls modification of files.
Field Summary | |
static long |
serialVersionUID
Deprecated. Only public by accident. |
Method Summary | |
void |
createData(String name)
Create new data file. |
void |
createFolder(String name)
Create new folder. |
void |
delete(String name)
Delete a file. |
void |
rename(String oldName,
String newName)
Rename a file. |
Field Detail |
public static final long serialVersionUID
Method Detail |
public void createFolder(String name) throws IOException
name
- full name of new folder, e.g. topfolder/newfolder
IOException
- if the operation failspublic void createData(String name) throws IOException
name
- full name of the file, e.g. path/from/root/filename.ext
IOException
- if the file cannot be created (e.g. already exists)public void rename(String oldName, String newName) throws IOException
oldName
- old name of the file; fully qualifiednewName
- new name of the file; fully qualified
IOException
- if it could not be renamedpublic void delete(String name) throws IOException
name
- name of file; fully qualified
IOException
- if the file could not be deleted
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |