public abstract class FileInputStream extends InputStream implements SagaObject, Async
NO_WAIT, WAIT_FOREVER
Constructor and Description |
---|
FileInputStream() |
Modifier and Type | Method and Description |
---|---|
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.
|
available, close, mark, markSupported, read, read, read, reset, skip
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getId, getSession
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.Copyright © 2016 Open Grid Forum. All rights reserved.