|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
public interface Manager
Read, Write, and Navigate Filesystems.
Name,
Info,
Systems| Method Summary | |
|---|---|
void |
append(URI dest,
String content)
Append to a file. |
void |
appendBinary(URI dest,
byte[] content)
Append binary data to a file. |
void |
copy(URI src,
URI dest)
Copy a file, and all it's descendants, to another location. |
void |
createFile(URI uri)
Create a file, if it does not exist. |
void |
createFolder(URI uri)
Create a folder, if it does not exist. |
boolean |
delete(URI uri)
Delete a file and all it's descendants. |
String[] |
listChildren(URI uri)
List the names of the children of a folder. |
URI[] |
listChildUris(URI uri)
List the URI of the children of a folder. |
void |
move(URI src,
URI dest)
Move a file (and all it's descendants) to another location. |
String |
read(URI src)
Read the contents of a file. |
byte[] |
readBinary(URI src)
Read the contents of a file as binary data. |
void |
refresh(URI uri)
Resynchronize the information about a file with the remote filesystem. |
void |
write(URI dest,
String content)
Write to a file. |
void |
writeBinary(URI dest,
byte[] content)
Write binary data to a file. |
| Method Detail |
|---|
void createFile(URI uri)
throws ACRException
uri - the filepath to create
ACRException - If the file already exists with the wrong type,
or the parent folder is read-only,
or on error creating this file or one of its ancestors.
void createFolder(URI uri)
throws ACRException
uri - the folderpath to create
ACRException - If the folder already exists with the wrong type,
or the parent folder is read-only,
or on error creating this folder or one of its ancestors.
void refresh(URI uri)
throws ACRException
ACRException
boolean delete(URI uri)
throws ACRException
uri - filepath to delete
ACRException
String[] listChildren(URI uri)
throws ACRException
uri - the folder to list
ACRException - If this file does not exist, or is not a folder,
or on error listing this file's children.
URI[] listChildUris(URI uri)
throws ACRException
uri - the folder to list
ACRException - If this file does not exist, or is not a folder,
or on error listing this file's children.
String read(URI src)
throws ACRException
src - the file to read from
ACRException - if the file is not readable, or a folder, or an error occurs when reading.
void write(URI dest,
String content)
throws ACRException
dest - the file to write tocontent - the contents to write to the file.
ACRException - if the file is read-only, or a folder, or an error occurs when writing.
byte[] readBinary(URI src)
throws ACRException
src - the file to read from
ACRException - if the file is not readable, or a folder, or an error occurs when reading.
void writeBinary(URI dest,
byte[] content)
throws ACRException
dest - the file to write tocontent - the contents to write to the file.
ACRException - if the file is read-only, or a folder, or an error occurs when writing.
void append(URI dest,
String content)
throws ACRException
dest - the file to write tocontent - the contents to append to the file.
ACRException - if the file is read-only, or a folder, or an error occurs when writing.
void appendBinary(URI dest,
byte[] content)
throws ACRException
dest - the file to write tocontent - the contents to append to the file.
ACRException - if the file is read-only, or a folder, or an error occurs when writing.
void copy(URI src,
URI dest)
throws ACRException
src - the source file / folderdest - the destination to copy to. The destination may be on a different
filesystem to src
ACRException
void move(URI src,
URI dest)
throws ACRException
src - the file to movedest - the destination to move to. This may be on a different filesystem to src
ACRException
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||