A scanner doesn't always have a key/value that it is pointing to when it is first created and before {@link #seekTo()}/ {@link #seekTo(byte[])} are called.In this case, {@link #getKey()}/ {@link #getValue()} returns null. At mostother times, a key and value will be available. The general pattern is that you position the Scanner using the seekTo variants and then getKey and getValue.
|
|