|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Directory
A Directory instance represents an open directory.
Field Summary |
---|
Fields inherited from interface org.ogf.saga.SagaObject |
---|
NO_WAIT, WAIT_FOREVER |
Method Summary | |
---|---|
Task<Directory,Long> |
getSize(TaskMode mode,
URL name)
Creates a task that retrieves the number of bytes in the specified file. |
Task<Directory,Long> |
getSize(TaskMode mode,
URL name,
int flags)
Creates a task that retrieves the number of bytes in the specified file. |
long |
getSize(URL name)
Returns the number of bytes in the specified file. |
long |
getSize(URL name,
int flags)
Returns the number of bytes in the specified file. |
Task<Directory,Boolean> |
isFile(TaskMode mode,
URL name)
Creates a task that tests the name for being a directory entry. |
boolean |
isFile(URL name)
Tests the name for being a directory entry. |
Task<Directory,Directory> |
openDirectory(TaskMode mode,
URL name)
Creates a task that creates a new Directory instance. |
Task<Directory,Directory> |
openDirectory(TaskMode mode,
URL name,
int flags)
Creates a task that creates a new Directory instance. |
Directory |
openDirectory(URL name)
Creates a new Directory instance. |
Directory |
openDirectory(URL name,
int flags)
Creates a new Directory instance. |
Task<Directory,File> |
openFile(TaskMode mode,
URL name)
Creates a task that creates a new File instance. |
Task<Directory,File> |
openFile(TaskMode mode,
URL name,
int flags)
Creates a task that creates a new File instance. |
File |
openFile(URL name)
Creates a new File instance. |
File |
openFile(URL name,
int flags)
Creates a new File instance. |
Task<Directory,FileInputStream> |
openFileInputStream(TaskMode mode,
URL name)
Creates a task that creates a new FileInputStream
instance. |
FileInputStream |
openFileInputStream(URL name)
Creates a new FileInputStream instance. |
Task<Directory,FileOutputStream> |
openFileOutputStream(TaskMode mode,
URL name)
Creates a task that creates a new FileOutputStream
instance. |
Task<Directory,FileOutputStream> |
openFileOutputStream(TaskMode mode,
URL name,
boolean append)
Creates a task that creates a new FileOutputStream
instance. |
FileOutputStream |
openFileOutputStream(URL name)
Creates a new FileOutputStream instance. |
FileOutputStream |
openFileOutputStream(URL name,
boolean append)
Creates a new FileOutputStream instance. |
Methods inherited from interface org.ogf.saga.namespace.NSDirectory |
---|
changeDir, changeDir, copy, copy, copy, copy, copy, copy, copy, copy, exists, exists, find, find, find, find, getEntry, getEntry, getMTime, getMTime, getNumEntries, getNumEntries, isDir, isDir, isEntry, isEntry, isLink, isLink, link, link, link, link, link, link, link, link, list, list, list, list, list, list, list, list, makeDir, makeDir, makeDir, makeDir, move, move, move, move, move, move, move, move, open, open, open, open, openDir, openDir, openDir, openDir, permissionsAllow, permissionsAllow, permissionsAllow, permissionsAllow, permissionsAllow, permissionsAllow, permissionsAllow, permissionsAllow, permissionsDeny, permissionsDeny, permissionsDeny, permissionsDeny, permissionsDeny, permissionsDeny, permissionsDeny, permissionsDeny, readLink, readLink, remove, remove, remove, remove, remove, remove, remove, remove |
Methods inherited from interface org.ogf.saga.namespace.NSEntry |
---|
close, close, close, close, copy, copy, copy, copy, getCWD, getCWD, getMTime, getMTime, getName, getName, getURL, getURL, isDir, isDir, isEntry, isEntry, isLink, isLink, link, link, link, link, move, move, move, move, permissionsAllow, permissionsAllow, permissionsDeny, permissionsDeny, readLink, readLink, remove, remove, remove, remove |
Methods inherited from interface org.ogf.saga.SagaObject |
---|
clone, getId, getSession |
Methods inherited from interface org.ogf.saga.permissions.Permissions |
---|
getGroup, getGroup, getOwner, getOwner, permissionsAllow, permissionsAllow, permissionsCheck, permissionsCheck, permissionsDeny, permissionsDeny |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
long getSize(URL name, int flags) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, DoesNotExistException, TimeoutException, NoSuccessException
name
- name of file to inspect.flags
- mode for operation.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL contains an invalid entry name,
or illegal flags are specified (the only legal flags are NONE
and DEREFERENCE).
IncorrectStateException
- is thrown when the Directory is already closed.
IncorrectURLException
- is thrown when an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
DoesNotExistException
- is thrown if the specified name does not exist.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.long getSize(URL name) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, DoesNotExistException, TimeoutException, NoSuccessException
name
- name of file to inspect.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL contains an invalid entry name.
IncorrectStateException
- is thrown when the Directory is already closed.
IncorrectURLException
- is thrown when an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
DoesNotExistException
- is thrown if the specified name does not exist.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.boolean isFile(URL name) throws NotImplementedException, IncorrectURLException, DoesNotExistException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, TimeoutException, NoSuccessException
NSDirectory.isEntry(org.ogf.saga.url.URL)
.
name
- to be tested.
true
if the name represents a non-directory entry.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL contains an invalid entry name.
IncorrectStateException
- is thrown when the Directory is already closed.
IncorrectURLException
- is thrown when an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
DoesNotExistException
- is thrown if the specified name does not exist.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Directory openDirectory(URL name, int flags) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException
Directory
instance.
name
- directory to open.flags
- defining the operation modus.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL does not point to a directory,
or is an invalid directory name.
IncorrectStateException
- is thrown when the Directory is already closed.
IncorrectURLException
- is thrown if an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
AlreadyExistsException
- is thrown if the specified URL already exists, and the
CREATE
and EXCLUSIVE
flags are given.
DoesNotExistException
- is thrown if the specified URL does not exist, and the
CREATE
flag is not given.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Directory openDirectory(URL name) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException
Directory
instance.
name
- directory to open.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL does not point to a directory,
or is an invalid directory name.
IncorrectStateException
- is thrown when the Directory is already closed.
IncorrectURLException
- is thrown if an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
AlreadyExistsException
- not thrown, but specified because a method may be invoked
that can throw this exception, but will not in this case.
DoesNotExistException
- is thrown if the specified URL does not exist.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.File openFile(URL name, int flags) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException
File
instance.
name
- file to open.flags
- defining the operation modus.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL is an invalid file name.
IncorrectURLException
- is thrown when an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
AlreadyExistsException
- is thrown if the specified URL already exists, and the
CREATE
and EXCLUSIVE
flags are given.
DoesNotExistException
- is thrown if the specified URL does not exist, and the
CREATE
flag is not given.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
IncorrectStateException
File openFile(URL name) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException
File
instance.
name
- file to open.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL is an invalid file name.
IncorrectURLException
- is thrown when an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
AlreadyExistsException
- is not thrown, but a method may be invoked that may throw it (but
not in this case).
DoesNotExistException
- is thrown if the specified URL does not exist.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
IncorrectStateException
FileInputStream openFileInputStream(URL name) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException
FileInputStream
instance.
name
- file to open.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL is an invalid file name.
IncorrectURLException
- is thrown when an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
AlreadyExistsException
- is not thrown, but a method may be invoked that may throw it (but
not in this case).
DoesNotExistException
- is thrown if the specified URL does not exist.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.
IncorrectStateException
FileOutputStream openFileOutputStream(URL name) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException
FileOutputStream
instance.
name
- file to open.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL points to a directory,
or is an invalid entry name.
IncorrectStateException
- is thrown when the NSDirectory is already closed.
IncorrectURLException
- is thrown if an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
AlreadyExistsException
- is not thrown, but a method may be invoked that may throw it (but
not in this case).
DoesNotExistException
- is thrown if the parent directory does not exist.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.FileOutputStream openFileOutputStream(URL name, boolean append) throws NotImplementedException, IncorrectURLException, AuthenticationFailedException, AuthorizationFailedException, PermissionDeniedException, BadParameterException, IncorrectStateException, AlreadyExistsException, DoesNotExistException, TimeoutException, NoSuccessException
FileOutputStream
instance.
name
- file to open.append
- when set, the stream appends to the file.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
PermissionDeniedException
- is thrown when the method failed because the identity used did
not have sufficient permissions to perform the operation
successfully.
AuthorizationFailedException
- is thrown when none of the available contexts of the
used session could be used for successful authorization.
This error indicates that the resource could not be accessed
at all, and not that an operation was not available due to
restricted permissions.
AuthenticationFailedException
- is thrown when operation failed because none of the available
session contexts could successfully be used for authentication.
TimeoutException
- is thrown when a remote operation did not complete successfully
because the network communication or the remote service timed
out.
BadParameterException
- is thrown when the specified URL points to a directory,
or is an invalid entry name.
IncorrectStateException
- is thrown when the NSDirectory is already closed.
IncorrectURLException
- is thrown if an implementation cannot handle the specified
protocol, or that access to the specified entity via the
given protocol is impossible.
AlreadyExistsException
- is not thrown, but a method may be invoked that may throw it (but
not in this case).
DoesNotExistException
- is thrown if the parent directory does not exist.
NoSuccessException
- is thrown when the operation was not successfully performed,
and none of the other exceptions apply.Task<Directory,Long> getSize(TaskMode mode, URL name, int flags) throws NotImplementedException
mode
- the task mode.name
- name of file to inspect.flags
- mode for operation.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<Directory,Long> getSize(TaskMode mode, URL name) throws NotImplementedException
mode
- the task mode.name
- name of file to inspect.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<Directory,Boolean> isFile(TaskMode mode, URL name) throws NotImplementedException
NSDirectory.isEntry(org.ogf.saga.url.URL)
.
mode
- the task mode.name
- to be tested.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<Directory,Directory> openDirectory(TaskMode mode, URL name, int flags) throws NotImplementedException
Directory
instance.
mode
- the task mode.name
- directory to open.flags
- defining the operation modus.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<Directory,Directory> openDirectory(TaskMode mode, URL name) throws NotImplementedException
Directory
instance.
mode
- the task mode.name
- directory to open.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<Directory,File> openFile(TaskMode mode, URL name, int flags) throws NotImplementedException
File
instance.
mode
- the task mode.name
- file to open.flags
- defining the operation modus.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<Directory,File> openFile(TaskMode mode, URL name) throws NotImplementedException
File
instance.
mode
- the task mode.name
- file to open.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<Directory,FileInputStream> openFileInputStream(TaskMode mode, URL name) throws NotImplementedException
FileInputStream
instance.
mode
- the task mode.name
- file to open.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<Directory,FileOutputStream> openFileOutputStream(TaskMode mode, URL name) throws NotImplementedException
FileOutputStream
instance.
mode
- the task mode.name
- file to open.
NotImplementedException
- is thrown when the task version of this method is not
implemented.Task<Directory,FileOutputStream> openFileOutputStream(TaskMode mode, URL name, boolean append) throws NotImplementedException
FileOutputStream
instance.
mode
- the task mode.name
- file to open.append
- when set, the file is opened for appending.
NotImplementedException
- is thrown when the task version of this method is not
implemented.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |