/** @see org.mulgara.store.stringpool.SPObject#getData() */ public ByteBuffer getData() { ByteBuffer data = CHARSET.encode(lexical); // if this is the same size as a long, expand it and pad it if (data.limit() == END_IDX) { ByteBuffer newData = ByteBuffer.allocate(END_IDX + 1); newData.put(data); newData.put(END_IDX, END_BYTE); newData.rewind(); data = newData; } return data; }
public ByteBuffer getData() { assert typeURI.toString().indexOf('\t') == -1 : "Datatype URI contains tab: " + typeURI; return CHARSET.encode(typeURI + "\t" + lexicalForm); }