@Override public void writeChar(int value) { try { delegate.put((byte) value); delegate.put((byte) (value >>> 8)); } catch (IOException e) { throw writeException(e); } }
@Override public void writeBytes(byte[] src) { try { delegate.put(src, src.length); } catch (IOException e) { throw writeException(e); } }
@Override public void writeByte(int value) { try { delegate.put((byte) value); } catch (IOException e) { throw writeException(e); } }
@Override public void writeMedium(int value) { try { delegate.putShort((short) value); delegate.put((byte) (value >>> 16)); } catch (IOException e) { throw writeException(e); } }
@Override public void writeBytes(ChannelBuffer src, int length) { try { byte[] array = new byte[length]; src.readBytes(array); delegate.put(array, array.length); } catch (IOException e) { throw writeException(e); } }