org.freecompany.redline

Class ChannelWrapper

public abstract class ChannelWrapper extends Object

Nested Class Summary
protected interfaceChannelWrapper.Consumer<T>
static classChannelWrapper.Key<T>
Field Summary
protected Map<Key<?>,Consumer<?>>consumers
Method Summary
voidclose()
Key<Integer>start(WritableByteChannel output)
Key<Integer>start()
Initializes a byte counter on this channel.
Key<byte[]>start(PrivateKey key)
Initialize a signature on this channel.
Key<byte[]>start(String algorithm)
Initialize a digest on this channel.

Field Detail

consumers

protected Map<Key<?>,Consumer<?>> consumers

Method Detail

close

public void close()

start

public Key<Integer> start(WritableByteChannel output)

start

public Key<Integer> start()
Initializes a byte counter on this channel.

start

public Key<byte[]> start(PrivateKey key)
Initialize a signature on this channel.

start

public Key<byte[]> start(String algorithm)
Initialize a digest on this channel.