RecordPos rec = findValuePosition(address); ByteArrayOutputStream os = new ByteArrayOutputStream(); getNodeValue(os, rec); byte[] data = os.toByteArray();
final RecordPos rec = findValuePosition(address); final ByteArrayOutputStream os = new ByteArrayOutputStream(); getNodeValue(os, rec, true); final byte[] data = os.toByteArray();
	public String getNodeValue(NodeProxy proxy) {		try {			long address = proxy.getInternalAddress();			if(address < 0)				address = findValue(this, proxy);			if(address == BTree.KEY_NOT_FOUND)				return null;			RecordPos rec = findValuePosition(address);			ByteArrayOutputStream os = new ByteArrayOutputStream();			getNodeValue(os, rec);			byte[] data = os.toByteArray();			String value;			try {				value = new String(data, "UTF-8");			} catch(UnsupportedEncodingException e) {				value = new String(data);			}			return value;		} catch (BTreeException e) {			LOG.warn("btree error while reading node value", e);		} catch (IOException e) {			LOG.warn("io error while reading node value", e);		}		return null;	}