|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
org.ogf.saga.file.FileInputStream
public abstract class FileInputStream
Since Java programmers are used to streams, the Java language bindings of SAGA provide them. In contrast to everything else in the language bindings, this is an abstract class, not an interface, because it is supposed to be a java.io.InputStream (which is a class, not an interface). Implementations should redefine methods of java.io.InputStream.
Field Summary |
---|
Fields inherited from interface org.ogf.saga.SagaObject |
---|
NO_WAIT, WAIT_FOREVER |
Constructor Summary | |
---|---|
FileInputStream()
|
Method Summary | |
---|---|
abstract Task<FileInputStream,Integer> |
available(TaskMode mode)
Creates a task that determines how many bytes are available from this stream. |
Object |
clone()
Clone is mentioned here because the inherited Object.clone() cannot hide the public version in
SagaObject.clone() . |
abstract Task<FileInputStream,Void> |
close(TaskMode mode)
Creates a task that closes this stream. |
abstract Task<FileInputStream,Void> |
mark(TaskMode mode,
int readlimit)
Creates a task that marks the current position in this stream. |
abstract Task<FileInputStream,Boolean> |
markSupported(TaskMode mode)
Creates a task that determines if InputStream.mark(int)
is supported. |
abstract Task<FileInputStream,Integer> |
read(TaskMode mode)
Creates a task that reads a byte from this stream. |
Task<FileInputStream,Integer> |
read(TaskMode mode,
byte[] buf)
Creates a task that reads a buffer from this stream. |
abstract Task<FileInputStream,Integer> |
read(TaskMode mode,
byte[] buf,
int off,
int len)
Creates task that reads (part of) a buffer from this stream. |
abstract Task<FileInputStream,Void> |
reset(TaskMode mode)
Creates a task that resets the position to the position last marked. |
abstract Task<FileInputStream,Long> |
skip(TaskMode mode,
long n)
Creates a task that skips the specified number of bytes from this stream. |
Methods inherited from class java.io.InputStream |
---|
available, close, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.ogf.saga.SagaObject |
---|
getId, getSession |
Constructor Detail |
---|
public FileInputStream()
Method Detail |
---|
public Object clone() throws CloneNotSupportedException
Object.clone()
cannot hide the public version in
SagaObject.clone()
.
clone
in interface SagaObject
clone
in class Object
CloneNotSupportedException
- when the clone method is not supported.public abstract Task<FileInputStream,Integer> read(TaskMode mode) throws NotImplementedException
InputStream.read()
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileInputStream,Integer> read(TaskMode mode, byte[] buf, int off, int len) throws NotImplementedException
InputStream.read(byte[], int, int)
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public Task<FileInputStream,Integer> read(TaskMode mode, byte[] buf) throws NotImplementedException
InputStream.read(byte[])
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileInputStream,Long> skip(TaskMode mode, long n) throws NotImplementedException
InputStream.skip(long)
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileInputStream,Integer> available(TaskMode mode) throws NotImplementedException
InputStream.available()
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileInputStream,Void> close(TaskMode mode) throws NotImplementedException
InputStream.close()
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileInputStream,Void> mark(TaskMode mode, int readlimit) throws NotImplementedException
InputStream.mark(int)
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileInputStream,Void> reset(TaskMode mode) throws NotImplementedException
InputStream.reset()
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileInputStream,Boolean> markSupported(TaskMode mode) throws NotImplementedException
InputStream.mark(int)
is supported. See InputStream.markSupported()
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |