|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Interface Summary | |
---|---|
Directory | A Directory instance represents an open directory. |
File | The File interface represents an open file descriptor for reads/writes on a physical file. |
IOVec | Extends the Buffer interface with lenIn, lenOut, and offset
attributes. |
Class Summary | |
---|---|
FileFactory | Factory for objects from the namespace package. |
FileInputStream | Since Java programmers are used to streams, the Java language bindings of SAGA provide them. |
FileOutputStream | Since Java programmers are used to streams, the Java language bindings of SAGA provide them. |
Enum Summary | |
---|---|
SeekMode | Determines the seekmode for File.seek(long, org.ogf.saga.file.SeekMode) : the specified offset is
interpreted with respect to the start, the current position, or the end. |
This package provides classes to manipulate the contents of directories
or files. In addition to the classes described in the language-independent
SAGA specifications, this package also contains classes that are
extensions of InputStream
and OutputStream
.
These are specific for the Java language bindings and were added because
Java programmers are used to them and the Java libraries have various
classes that build on top of these,
A File
represents
an open file descriptor for read/write operations on a physical file.
A deviation from the language-independent SAGA specifications is that
the read and write methods do not return POSIX error codes in case
of an error. Instead, they throw a
SagaIOException
. If a
POSIX error code happens to be available, it is stored inside the
exception object.
An Directory
extends an NSDirectory
with methods to open files and other directories.
Some methods have been renamed slightly to avoid conflicts with methods
in NSDirectory
, as only
the type of the return value differs, and Java forbids that.
The possible file flags are defined in the
Flags
enumeration
class, which includes methods to combine them into integers,
and to determine if they are set in an integer.
These methods are not described in the language-independent SAGA
specification, but are added in the Java language bindings because
in Java, enumerations cannot be treated as integers.
Also, since enumeration classes are not extensible in Java, flags
from the logicalfile
package
and the namespace
package are included
there as well.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |