public SnapshotRecord readSnapshotRecord() throws IOException, ClassNotFoundException {
      byte[] key = DataSerializer.readByteArray(dis);
      if (key == null) {
        return null;
      }

      byte[] value = DataSerializer.readByteArray(dis);
      return new SnapshotRecord(key, value);
    }
public SnapshotRecord readSnapshotRecord() throws IOException, ClassNotFoundException {
      byte[] key = DataSerializer.readByteArray(dis);
      if (key == null) {
        return null;
      }

      byte[] value = DataSerializer.readByteArray(dis);
      return new SnapshotRecord(key, value);
    }
public SnapshotRecord readSnapshotRecord ( ) throws IOException , ClassNotFoundException { byte [ ] key = DataSerializer . readByteArray ( dis ) ; if ( key == null ) { return null ; } byte [ ] value = DataSerializer . readByteArray ( dis ) ; return new SnapshotRecord ( key , value ) ; }
Reads a snapshot entry. If the last entry has been read, a null value will be returned.

@return the entry or null
@throws IOException unable to read entry
@throws ClassNotFoundException unable to create entry
Reads a snapshot entry . If the last entry has been read a null value will be returned .