Top Methods
org.apache.sshd.common.io

public Interface IoReadFuture

extends SshFuture<IoReadFuture>, VerifiableFuture<IoReadFuture>
Imports
org.apache.sshd.common.future.SshFuture, .VerifiableFuture, org.apache.sshd.common.util.buffer.Buffer

Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public Buffer

Returns:

the buffer, null if isDone() == false
getBuffer
()

Retrieves the buffer data was read into.

public Throwable

Returns:

null if the read operation is not finished yet, or if the read attempt is successful (use isDone() to distinguish between the two).
getException
()

Returns the cause of the read failure.

public int

Returns:

The number of bytes read, or -1 if the source of the read has been exhausted (is at EOF), or zero if the read is not done yet (isDone() == false)
getRead
()

Retrieves the number of bytes read.

Inherited from org.apache.sshd.common.future.SshFuture:
addListenerremoveListener
Inherited from org.apache.sshd.common.future.VerifiableFuture:
verifyverifyverifyverifyverifyverifyverifyverify

Method Detail

getBufferback to summary
public Buffer getBuffer()

Retrieves the buffer data was read into.

Returns:Buffer

the buffer, null if isDone() == false

getExceptionback to summary
public Throwable getException()

Returns the cause of the read failure. An java.io.EOFException indicates that nothing was read because the source of the read is exhausted.

Returns:Throwable

null if the read operation is not finished yet, or if the read attempt is successful (use isDone() to distinguish between the two).

getReadback to summary
public int getRead()

Retrieves the number of bytes read.

Returns:int

The number of bytes read, or -1 if the source of the read has been exhausted (is at EOF), or zero if the read is not done yet (isDone() == false)