Class DataFrame


public class DataFrame extends StreamFrame
  • Constructor Details

    • DataFrame

      public DataFrame(ByteBuffer data, boolean endStream)
    • DataFrame

      public DataFrame(int streamId, ByteBuffer data, boolean endStream)
    • DataFrame

      public DataFrame(int streamId, ByteBuffer data, boolean endStream, int padding)
  • Method Details

    • getByteBuffer

      public ByteBuffer getByteBuffer()
    • isEndStream

      public boolean isEndStream()
    • remaining

      public int remaining()
      Returns:
      the number of data bytes remaining.
    • padding

      public int padding()
      Returns:
      the number of bytes used for padding that count towards flow control.
    • flowControlLength

      public int flowControlLength()
      Returns:
      the flow control length, equivalent to the sum of data bytes and padding bytes
    • withStreamId

      public DataFrame withStreamId(int streamId)
      Specified by:
      withStreamId in class StreamFrame
    • toString

      public String toString()
      Overrides:
      toString in class Frame