|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface File
Method Summary | |
---|---|
void |
chmod(boolean _readable,
boolean _writable,
boolean _executable)
Sets readable, writable, executable flags all at once. |
void |
copyTo(File _other)
Copy this File to _other File . |
void |
copyTo(File _other,
boolean _overwrite)
Copy this File to _other File . |
void |
copyTo(File _other,
boolean _overwrite,
boolean _recursive)
Copy this File to _other File . |
boolean |
delete()
Deletes the file. |
boolean |
delete(boolean _recursive)
|
boolean |
exists()
Checks, whether the File exists() . |
SimpleTransfer |
exportToLocalFile(File localFile)
Export this File . |
SimpleTransfer |
exportToLocalFile(File localFile,
boolean _overwrite)
If the target File is a directory, then move this
File into the directory and give the new target the same name. |
SimpleTransfer |
exportToLocalFile(File localFile,
boolean _overwrite,
boolean _recursive)
|
SimpleTransfer |
exportToStream(OutputStream _os)
|
Storage |
getStorage()
|
SimpleTransfer |
importFromLocalFile(File localFile)
If the target File is a directory, then move this
File into the directory and give the new target the same
name. |
SimpleTransfer |
importFromLocalFile(File localFile,
boolean _overwrite)
If the target File is a directory, then move this
File into the directory and give the new target the same
name. |
SimpleTransfer |
importFromLocalFile(File localFile,
boolean _overwrite,
boolean _recursive)
|
SimpleTransfer |
importFromStream(InputStream _is)
|
SimpleTransfer |
importFromStream(InputStream _is,
boolean _overwrite)
|
boolean |
isDirectory()
Whether this File is a directory. |
boolean |
isExecutable()
|
boolean |
isReadable()
|
boolean |
isRoot()
Whether this file is the root of a storage, i.e. its path inside the storage is the empty path. |
boolean |
isWritable()
|
Date |
lastModified()
|
List<File> |
ls()
|
boolean |
mkdir()
Creates a directory at the Location of this File . |
boolean |
mkdir(boolean _createParents)
|
void |
moveTo(File _other)
Move this File to _other File within a storage. |
void |
moveTo(File _other,
boolean _overwrite)
Move this File to _other File within a storage. |
void |
setIsExecutable(boolean _executable)
Sets the executable flag of the File for the user. |
void |
setIsReadable(boolean _readable)
Sets the readable flag of the File for the user. |
void |
setIsWritable(boolean _writable)
Sets the writable flag of the File for the user. |
long |
size()
|
ThirdPartyTransfer |
transfer(File _other)
Transfer this File to _other File . |
ThirdPartyTransfer |
transfer(File _other,
boolean _overwrite)
Same as transfer(File) . |
ThirdPartyTransfer |
transfer(File _other,
boolean _overwrite,
boolean _recursive)
Same as transfer(File) . |
Methods inherited from interface eu.unicore.hila.Resource |
---|
getChild, getChildren, getLocation, getMetadata, getName, getParent, ok |
Method Detail |
---|
List<File> ls() throws eu.unicore.hila.exceptions.HiLAException
eu.unicore.hila.exceptions.HiLAException
boolean isRoot() throws eu.unicore.hila.exceptions.HiLAException
eu.unicore.hila.exceptions.HiLAException
boolean isDirectory() throws eu.unicore.hila.exceptions.HiLAException
File
is a directory. This is only meaningful if the
File
exists()
.
eu.unicore.hila.exceptions.HiLAException
- if the file does not exist.boolean exists() throws eu.unicore.hila.exceptions.HiLAException
File
exists()
.
File
exists()
, false otherwise
eu.unicore.hila.exceptions.HiLAException
boolean isReadable() throws eu.unicore.hila.exceptions.HiLAException
eu.unicore.hila.exceptions.HiLAException
void setIsReadable(boolean _readable) throws eu.unicore.hila.exceptions.HiLAException
File
for the user.
_readable
-
eu.unicore.hila.exceptions.HiLAException
boolean isWritable() throws eu.unicore.hila.exceptions.HiLAException
File
is writable for the user.
eu.unicore.hila.exceptions.HiLAException
void setIsWritable(boolean _writable) throws eu.unicore.hila.exceptions.HiLAException
File
for the user.
_writable
-
eu.unicore.hila.exceptions.HiLAException
boolean isExecutable() throws eu.unicore.hila.exceptions.HiLAException
File
is executable for the user.
eu.unicore.hila.exceptions.HiLAException
void setIsExecutable(boolean _executable) throws eu.unicore.hila.exceptions.HiLAException
File
for the user.
_executable
-
eu.unicore.hila.exceptions.HiLAException
void chmod(boolean _readable, boolean _writable, boolean _executable) throws eu.unicore.hila.exceptions.HiLAException
_readable
- _writable
- _executable
-
eu.unicore.hila.exceptions.HiLAException
boolean delete() throws eu.unicore.hila.exceptions.HiLAException
eu.unicore.hila.exceptions.HiLAException
boolean delete(boolean _recursive) throws eu.unicore.hila.exceptions.HiLAException
_recursive
-
eu.unicore.hila.exceptions.HiLAException
boolean mkdir() throws eu.unicore.hila.exceptions.HiLAException
Location
of this File
.
eu.unicore.hila.exceptions.HiLAException
- If anything went wrong when creating the directory.boolean mkdir(boolean _createParents) throws eu.unicore.hila.exceptions.HiLAException
_createParents
- whether to recursively create directories and create the
parents
eu.unicore.hila.exceptions.HiLAException
- If anything went wrong when creating the directory.Storage getStorage() throws eu.unicore.hila.exceptions.HiLAException
Storage
that this File
is located in.
eu.unicore.hila.exceptions.HiLAException
SimpleTransfer importFromLocalFile(File localFile) throws eu.unicore.hila.exceptions.HiLAException
File
is a directory, then move this
File
into the directory and give the new target the same
name.
localFile
- The local File
which to import to this remote
File
eu.unicore.hila.exceptions.HiLAException
SimpleTransfer importFromLocalFile(File localFile, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
File
is a directory, then move this
File
into the directory and give the new target the same
name.
localFile
- The local File
which to import to this remote
File
_overwrite
- whether to overwrite the remote File
eu.unicore.hila.exceptions.HiLAException
SimpleTransfer importFromLocalFile(File localFile, boolean _overwrite, boolean _recursive) throws eu.unicore.hila.exceptions.HiLAException
localFile
- _overwrite
- _recursive
-
HiLaException
eu.unicore.hila.exceptions.HiLAException
SimpleTransfer exportToLocalFile(File localFile) throws eu.unicore.hila.exceptions.HiLAException
File
. If the target File
is a
directory, then move this File
into the directory and give the
new target the same name.
localFile
- the local File
to export to
eu.unicore.hila.exceptions.HiLAException
SimpleTransfer exportToLocalFile(File localFile, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
File
is a directory, then move this
File
into the directory and give the new target the same name.
localFile
- the local File
to export to_overwrite
- whether to overwrite the local File
eu.unicore.hila.exceptions.HiLAException
SimpleTransfer exportToLocalFile(File localFile, boolean _overwrite, boolean _recursive) throws eu.unicore.hila.exceptions.HiLAException
localFile
- _overwrite
- _recursive
-
eu.unicore.hila.exceptions.HiLAException
SimpleTransfer exportToStream(OutputStream _os) throws eu.unicore.hila.exceptions.HiLAException
eu.unicore.hila.exceptions.HiLAException
SimpleTransfer importFromStream(InputStream _is) throws eu.unicore.hila.exceptions.HiLAException
_outputStream
-
eu.unicore.hila.exceptions.HiLAException
SimpleTransfer importFromStream(InputStream _is, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
_outputStream
-
eu.unicore.hila.exceptions.HiLAException
ThirdPartyTransfer transfer(File _other) throws eu.unicore.hila.exceptions.HiLAException
File
to _other File
. If the target is a
directory, then move this File
into the directory and give the
new target the same name.
_other
- The target File
eu.unicore.hila.exceptions.HiLAException
ThirdPartyTransfer transfer(File _other, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
transfer(File)
. If the target is a directory, then move
this File
into the directory and give the new target the same
name.
_other
- The target FilerException
_overwrite
- whether to overwrite the target File
eu.unicore.hila.exceptions.HiLAException
#transfer(File)}
ThirdPartyTransfer transfer(File _other, boolean _overwrite, boolean _recursive) throws eu.unicore.hila.exceptions.HiLAException
transfer(File)
. If the target is a directory, then move
this File
into the directory and give the new target the same
name.
_other
- The target FilerException
_overwrite
- whether to overwrite the target File
_recursive
- whether to transfer directory structures recursively
eu.unicore.hila.exceptions.HiLAException
#transfer(File)}
long size() throws eu.unicore.hila.exceptions.HiLAException
File
in Bytes.
eu.unicore.hila.exceptions.HiLAException
Date lastModified() throws eu.unicore.hila.exceptions.HiLAException
File
was last modified
eu.unicore.hila.exceptions.HiLAException
void copyTo(File _other) throws eu.unicore.hila.exceptions.HiLAException
File
to _other File
. Only works within a
storage. For remote, third-party transfers use transfer(File)
.
If the target is a directory, then move this File
into the
directory and give the new target the same name.
_other
- The target File
.
eu.unicore.hila.exceptions.HiLAException
void copyTo(File _other, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
File
to _other File
. Only works within a
storage. For remote, third-party transfers use transfer(File)
.
If the target is a directory, then move this File
into the
directory and give the new target the same name.
_other
- The target File
._overwrite
- whether to overwrite the target File
if it exists
eu.unicore.hila.exceptions.HiLAException
void copyTo(File _other, boolean _overwrite, boolean _recursive) throws eu.unicore.hila.exceptions.HiLAException
File
to _other File
. Only works within a
storage. For remote, third-party transfers use transfer(File)
.
If the target is a directory, then move this File
into the
directory and give the new target the same name.
_other
- The target File
._overwrite
- whether to overwrite the target File
if it exists_recursive
- whether to copy directory structures recursively
eu.unicore.hila.exceptions.HiLAException
void moveTo(File _other) throws eu.unicore.hila.exceptions.HiLAException
File
to _other File
within a storage. If the
target is a directory, then move this File
into the directory and
give the new target the same name.
_other
- The target File
to move to.
eu.unicore.hila.exceptions.HiLAException
void moveTo(File _other, boolean _overwrite) throws eu.unicore.hila.exceptions.HiLAException
File
to _other File
within a storage. If the
target is a directory, then move this File
into the directory and
give the new target the same name.
_other
- The target File
to move to._overwrite
- whether to overwrite an existing file.
eu.unicore.hila.exceptions.HiLAException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |