コード例 #1
0
ファイル: SPDecimalImpl.java プロジェクト: anukat2015/mulgara
 /** @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;
 }
コード例 #2
0
 public ByteBuffer getData() {
   assert typeURI.toString().indexOf('\t') == -1 : "Datatype URI contains tab: " + typeURI;
   return CHARSET.encode(typeURI + "\t" + lexicalForm);
 }