Class ArmeriaMessageDeframer.ByteBufOrStream

  • Enclosing class:
    ArmeriaMessageDeframer

    public static class ArmeriaMessageDeframer.ByteBufOrStream
    extends Object
    A deframed message. For uncompressed messages, we have the entire buffer available and return it as is in buf to optimize parsing. For compressed messages, we will parse incrementally and thus return a InputStream in stream.
    • Constructor Detail

      • ByteBufOrStream

        public ByteBufOrStream​(ByteBuf buf)
      • ByteBufOrStream

        public ByteBufOrStream​(InputStream stream)