/** * {@inheritDoc} */ @Override public void writeBooleanArray(final boolean[] data) throws IOException { for(int i=0; i<data.length; i++) { output.write((byte) (data[i] ? 1 : 0)); } }
/** * {@inheritDoc} */ @Override public void writeBuffer(Buffer b) throws IOException { output.write(b); }
/** * {@inheritDoc} */ @Override public void writeBuffer(Buffer b) throws IOException { output.write(b); }
/** * {@inheritDoc} */ @Override public void writeBooleanArray(final boolean[] data) throws IOException { for(int i=0; i<data.length; i++) { output.write((byte) (data[i] ? 1 : 0)); } }
/** * {@inheritDoc} */ @Override public void writeBuffer(Buffer b) throws IOException { output.write(b); }
/** * {@inheritDoc} */ @Override public void writeByte(final byte data) throws IOException { output.write(data); }
/** * {@inheritDoc} */ @Override public void writeBooleanArray(final boolean[] data) throws IOException { for(int i=0; i<data.length; i++) { output.write((byte) (data[i] ? 1 : 0)); } }
/** * {@inheritDoc} */ @Override public void writeBuffer(Buffer b) throws IOException { output.write(b); }
/** * {@inheritDoc} */ @Override public void writeByte(final byte data) throws IOException { output.write(data); }
/** * {@inheritDoc} */ @Override public void writeBooleanArray(final boolean[] data) throws IOException { for(int i=0; i<data.length; i++) { output.write((byte) (data[i] ? 1 : 0)); } }
/** * {@inheritDoc} */ @Override public void writeByte(final byte data) throws IOException { output.write(data); }
/** * {@inheritDoc} */ @Override public void writeBuffer(Buffer b) throws IOException { output.write(b); }
/** * {@inheritDoc} */ @Override public void writeBuffer(Buffer b) throws IOException { output.write(b); }
@Override public void writeInt(final int data) throws IOException { if (isOutputBuffered) { output.ensureBufferCapacity(4); output.getBuffer().putInt(data); } else { output.write((byte) ((data >>> 24) & 0xFF)); output.write((byte) ((data >>> 16) & 0xFF)); output.write((byte) ((data >>> 8) & 0xFF)); output.write((byte) ((data) & 0xFF)); } }
@Override public void writeInt(final int data) throws IOException { if (isOutputBuffered) { output.ensureBufferCapacity(4); output.getBuffer().putInt(data); } else { output.write((byte) ((data >>> 24) & 0xFF)); output.write((byte) ((data >>> 16) & 0xFF)); output.write((byte) ((data >>> 8) & 0xFF)); output.write((byte) ((data) & 0xFF)); } }
@Override public void writeInt(final int data) throws IOException { if (isOutputBuffered) { output.ensureBufferCapacity(4); output.getBuffer().putInt(data); } else { output.write((byte) ((data >>> 24) & 0xFF)); output.write((byte) ((data >>> 16) & 0xFF)); output.write((byte) ((data >>> 8) & 0xFF)); output.write((byte) ((data) & 0xFF)); } }
@Override public void writeInt(final int data) throws IOException { if (isOutputBuffered) { output.ensureBufferCapacity(4); output.getBuffer().putInt(data); } else { output.write((byte) ((data >>> 24) & 0xFF)); output.write((byte) ((data >>> 16) & 0xFF)); output.write((byte) ((data >>> 8) & 0xFF)); output.write((byte) ((data) & 0xFF)); } }
/** * {@inheritDoc} */ @Override public void writeByteArray(byte[] data, int offset, int length) throws IOException { final Buffer buffer = Buffers.wrap(connection.getMemoryManager(), data, offset, length); output.write(buffer); }
/** * {@inheritDoc} */ @Override public void writeByteArray(byte[] data, int offset, int length) throws IOException { final Buffer buffer = Buffers.wrap(connection.getMemoryManager(), data, offset, length); output.write(buffer); }
/** * {@inheritDoc} */ @Override public void writeByteArray(byte[] data, int offset, int length) throws IOException { final Buffer buffer = Buffers.wrap(connection.getMemoryManager(), data, offset, length); output.write(buffer); }