public class DigestReadableByteChannel extends FilterReadableByteChannel
| Modifier and Type | Field and Description |
|---|---|
protected MessageDigest |
digest |
channel| Constructor and Description |
|---|
DigestReadableByteChannel(ReadableByteChannel channel,
MessageDigest digest)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
read(ByteBuffer dst) |
close, isOpenprotected MessageDigest digest
public DigestReadableByteChannel(ReadableByteChannel channel, MessageDigest digest)
channel - the input channeldigest - the message digest to associate with this channelpublic int read(ByteBuffer dst) throws IOException
read in interface ReadableByteChannelread in class FilterReadableByteChannelIOExceptionCopyright © 2011-2013. All Rights Reserved.