String value = message.toString();
IoBuffer buf = IoBuffer.allocate(value.length())
.setAutoExpand(true);
buf.putString(value, encoder);
if (buf.position() > Integer.MAX_VALUE) {
throw new IllegalArgumentException("Line length: " + buf.position());
}
buf.putString(m_delimiter.getValue(), encoder);
buf.flip();
out.write(buf);