|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.ogf.saga.file.FileOutputStream
public abstract class FileOutputStream
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.OutputStream (which is a class, not an interface). Implementations should redefine methods of java.io.OutputStream.
Field Summary |
---|
Fields inherited from interface org.ogf.saga.SagaObject |
---|
NO_WAIT, WAIT_FOREVER |
Constructor Summary | |
---|---|
FileOutputStream()
|
Method Summary | |
---|---|
Object |
clone()
Clone is mentioned here because the inherited Object.clone() cannot hide the public version in
SagaObject.clone() . |
abstract Task<FileOutputStream,Void> |
close(TaskMode mode)
Creates a task that closes this stream. |
abstract Task<FileOutputStream,Void> |
flush(TaskMode mode)
Creates a task that flushes this stream. |
Task<FileOutputStream,Void> |
write(TaskMode mode,
byte[] buf)
Creates a task that writes a buffer to this stream. |
abstract Task<FileOutputStream,Void> |
write(TaskMode mode,
byte[] buf,
int off,
int len)
Creates a task that writes (part of) a buffer to this stream. |
abstract Task<FileOutputStream,Void> |
write(TaskMode mode,
int b)
Creates a task that writes a byte to this stream. |
Methods inherited from class java.io.OutputStream |
---|
close, flush, write, write, write |
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 FileOutputStream()
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<FileOutputStream,Void> write(TaskMode mode, int b) throws NotImplementedException
OutputStream.write(int)
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileOutputStream,Void> write(TaskMode mode, byte[] buf, int off, int len) throws NotImplementedException
OutputStream.write(byte[], int, int)
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public Task<FileOutputStream,Void> write(TaskMode mode, byte[] buf) throws NotImplementedException
OutputStream.write(byte[])
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileOutputStream,Void> flush(TaskMode mode) throws NotImplementedException
OutputStream.flush()
.
mode
- the task mode.
NotImplementedException
- is thrown if the implementation does not provide an
implementation of this method.public abstract Task<FileOutputStream,Void> close(TaskMode mode) throws NotImplementedException
OutputStream.close()
.
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 |