Top Methods
org.apache.sshd.common.util

public Interface Readable

Known Direct Implementers
org.apache.sshd.common.util.buffer.Buffer
Imports
java.nio.ByteBuffer, java.util.Objects

Author
Apache MINA SSHD Project

Method Summary

Modifier and TypeMethod and Description
public int
public void
getRawBytes(byte[] data, int offset, int len)

public static Readable

Returns:

The Readable wrapper
readable
(ByteBuffer
The ByteBuffer to wrap - never null
buffer
)

Wrap a ByteBuffer as a Readable instance

Method Detail

availableback to summary
public int available()
getRawBytesback to summary
public void getRawBytes(byte[] data, int offset, int len)
readableback to summary
public static Readable readable(ByteBuffer buffer)

Wrap a ByteBuffer as a Readable instance

Parameters
buffer:ByteBuffer

The ByteBuffer to wrap - never null

Returns:Readable

The Readable wrapper