Interface UnixFSChecksumAlgorithm.ChannelCheckable
- Enclosing class:
UnixFSChecksumAlgorithm
public static interface UnixFSChecksumAlgorithm.ChannelCheckable
Defines a Checksum-able type which is backed by a
SeekableByteChannel or subclass. This for when a header
preceds-
Method Summary
Modifier and TypeMethodDescriptionReturns aSeekableByteChannelof the contents to check.default ByteBufferAllocates aByteBufferused to check the contents.
-
Method Details
-
contentsToCheck
Returns aSeekableByteChannelof the contents to check.- Returns:
- the
ByteBuffer - Throws:
IOException
-
getIntermediateBuffer
Allocates aByteBufferused to check the contents. This uses- Returns:
- a
ByteBufferto use intermediately while calculating the checksum.
-