コード例 #1
0
 @Override
 public void writeTo(StreamOutput out) throws IOException {
   super.writeTo(out);
   out.writeBytesReference(text);
 }
コード例 #2
0
 @Override
 public void readFrom(StreamInput in) throws IOException {
   super.readFrom(in);
   text = in.readBytesReference();
 }