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 aSeekableByteChannel
of the contents to check.default ByteBuffer
Allocates aByteBuffer
used to check the contents.
-
Method Details
-
contentsToCheck
Returns aSeekableByteChannel
of the contents to check.- Returns:
- the
ByteBuffer
- Throws:
IOException
-
getIntermediateBuffer
Allocates aByteBuffer
used to check the contents. This uses- Returns:
- a
ByteBuffer
to use intermediately while calculating the checksum.
-