public interface SkippingCipher
Modifier and Type | Method and Description |
---|---|
long |
getPosition()
Return the current "position" of the cipher
|
long |
seekTo(long position)
Reset the cipher and then skip forward to a given position.
|
long |
skip(long numberOfBytes)
Skip numberOfBytes forwards, or backwards.
|
long skip(long numberOfBytes)
numberOfBytes
- the number of bytes to skip (positive forward, negative backwards).IllegalArgumentException
- if numberOfBytes is an invalid value.long seekTo(long position)
position
- the number of bytes in to set the cipher state to.long getPosition()