Class DataFrame
java.lang.Object
org.eclipse.jetty.http2.frames.Frame
org.eclipse.jetty.http2.frames.StreamFrame
org.eclipse.jetty.http2.frames.DataFrame
-
Field Summary
Fields inherited from class Frame
DEFAULT_MAX_SIZE, EMPTY_ARRAY, HEADER_LENGTH, MAX_MAX_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionDataFrame(int streamId, ByteBuffer data, boolean endStream) DataFrame(int streamId, ByteBuffer data, boolean endStream, int padding) DataFrame(ByteBuffer data, boolean endStream) -
Method Summary
Modifier and TypeMethodDescriptionintbooleanintpadding()inttoString()withStreamId(int streamId) Methods inherited from class StreamFrame
getStreamId
-
Constructor Details
-
DataFrame
-
DataFrame
-
DataFrame
-
-
Method Details
-
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
- Specified by:
withStreamIdin classStreamFrame
-
toString
-