Returns a reference to {@code this} so multiple operations can be appended together.
4546474849505152535455
markValueSet(); } protected ByteBuffer getValueData() throws ValueNotSetException { ByteBuffer valueBuf = new ByteBuffer(); valueBuf.appendByte(getValue()); return valueBuf; } public void setValue(byte p_value) { value = p_value;
6061626364656667686970
* Creates byt buffer containing one unsigned byte. * @return the byte buffer with one unsingned byte */ protected ByteBuffer getValueData() throws ValueNotSetException { ByteBuffer valueBuf = new ByteBuffer(); valueBuf.appendByte(encodeUnsigned(getValue())); return valueBuf; } /** * Sets the value of the TLV to the new value.
143144145146147148149150151152153
*/ @Override public void write(int b) throws IOException { checkState(); Buffer buffer = new Buffer(); buffer.appendByte((byte) b); response.write(buffer); } /** * {@inheritDoc}
179180181182183184185186187188189
@Override public void write(final int b) throws IOException { checkState(); final Buffer buffer = new Buffer(); buffer.appendByte((byte) b); response.write(buffer); } @Override public void write(final byte[] b) throws IOException {
2425262728293031323334
headers.add("content-length", "1024"); Buffer body = new Buffer(1024); for (int i=0; i < 1024; i++) { body.appendByte((byte) 'A'); } new YokeTester(yoke).request("GET", "/", headers, body, new Handler<Response>() { @Override public void handle(Response resp) {