public static void encodeAndWriteNoop(final Buffer buffer, final BufferColor bufferColor) throws IOException { buffer.write(NOOP_ARRAY.length, new ByteArrayInputStream(NOOP_ARRAY), bufferColor); }
public static void encodeAndWrite( final Buffer buffer, final BufferColor bufferColor, final Message message) throws IOException { buffer.write(encodePayloadToByteArrayInputStream(message.getParts()), bufferColor); }