org.freecompany.redline
Class ChannelWrapper
java.lang.Object
org.freecompany.redline.ChannelWrapper
- Direct Known Subclasses:
- ReadableChannelWrapper, WritableChannelWrapper
public abstract class ChannelWrapper
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
consumers
protected java.util.Map<ChannelWrapper.Key<?>,ChannelWrapper.Consumer<?>> consumers
ChannelWrapper
public ChannelWrapper()
start
public ChannelWrapper.Key<java.lang.Integer> start(java.nio.channels.WritableByteChannel output)
start
public ChannelWrapper.Key<java.lang.Integer> start()
- Initializes a byte counter on this channel.
start
public ChannelWrapper.Key<byte[]> start(java.security.PrivateKey key)
throws java.security.NoSuchAlgorithmException,
java.security.InvalidKeyException
- Initialize a signature on this channel.
- Throws:
java.security.NoSuchAlgorithmException
java.security.InvalidKeyException
start
public ChannelWrapper.Key<byte[]> start(java.lang.String algorithm)
throws java.security.NoSuchAlgorithmException
- Initialize a digest on this channel.
- Throws:
java.security.NoSuchAlgorithmException
finish
public <T> T finish(ChannelWrapper.Key<T> object)
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException