Exemplo n.º 1
0
  public static void encodeAndWriteNoop(final Buffer buffer, final BufferColor bufferColor)
      throws IOException {

    buffer.write(NOOP_ARRAY.length, new ByteArrayInputStream(NOOP_ARRAY), bufferColor);
  }
Exemplo n.º 2
0
  public static void encodeAndWrite(
      final Buffer buffer, final BufferColor bufferColor, final Message message)
      throws IOException {

    buffer.write(encodePayloadToByteArrayInputStream(message.getParts()), bufferColor);
  }