out.writeUTF((String) value);
return buffer.toByteArray();
}
public void fromBytes(byte[] data) throws IOException {
DataInputStream in = new DataInputStream(new FastInputStream(data));
this.previousKey = wrapLong(in.readLong());
this.nextKey = wrapLong(in.readLong());
this.value = in.readUTF();
}