return new Value(value);
}
private Value getCombinedValue(Key key, int pos, int len, short elemID, short attrID) {
Value result;
try {
int l = key.getLength();
byte[] b = new byte[l+13];
// Write the key
System.arraycopy(key.getData(), 0, b, 0, l);
b[l] = 0;
// Write the pos
b[l+1] = (byte)((pos >>> 24) & 0xFF);
b[l+2] = (byte)((pos >>> 16) & 0xFF);
b[l+3] = (byte)((pos >>> 8) & 0xFF);
b[l+4] = (byte)((pos >>> 0) & 0xFF);
// Write the len
b[l+5] = (byte)((len >>> 24) & 0xFF);
b[l+6] = (byte)((len >>> 16) & 0xFF);
b[l+7] = (byte)((len >>> 8) & 0xFF);
b[l+8] = (byte)((len >>> 0) & 0xFF);
// Write the elemID
b[l+9] = (byte)((elemID >>> 8) & 0xFF);
b[l+10] = (byte)((elemID >>> 0) & 0xFF);
// Write the attrID
b[l+11] = (byte)((attrID >>> 8) & 0xFF);
b[l+12] = (byte)((attrID >>> 0) & 0xFF);
result = new Value(b);
}
catch ( Exception e ) {
result = null; // This will never happen
}
return result;