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

    • getData

      public ByteBuffer getData()
    • 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.
    • withStreamId

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

      public String toString()
      Overrides:
      toString in class Frame