@Override public void write(DataOutput out) throws IOException { OutputStream os = DataOutputOutputStream.constructOutputStream(out); ((Message)requestHeader).writeDelimitedTo(os); theRequest.writeDelimitedTo(os); }
@Override public void write(DataOutput out) throws IOException { log.debug("SolrRecord -> write"); JavaBinCodec codec = new JavaBinCodec(); FastOutputStream os = FastOutputStream.wrap(DataOutputOutputStream.constructOutputStream(out)); codec.init(os); try { codec.writeVal(sd); } finally { os.flushBuffer(); } }
@Override public void write(DataOutput out) throws IOException { OutputStream os = DataOutputOutputStream.constructOutputStream(out); theResponse.writeDelimitedTo(os); }