Пример #1
0
  public static void encodeAndWriteNoop(final Buffer buffer, final BufferColor bufferColor)
      throws IOException {

    buffer.write(NOOP_ARRAY.length, new ByteArrayInputStream(NOOP_ARRAY), bufferColor);
  }
Пример #2
0
  public static void encodeAndWrite(
      final Buffer buffer, final BufferColor bufferColor, final Message message)
      throws IOException {

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