Top Fields Constructors Methods
org.eclipse.jetty.http2.frames

public Class DataFrame

extends StreamFrame
Class Inheritance
Imports
java.nio.ByteBuffer

Field Summary

Modifier and TypeField and Description
private final ByteBuffer
private final boolean
private final int
private final int

Constructor Summary

AccessConstructor and Description
public
DataFrame(ByteBuffer data, boolean endStream)

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

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

Method Summary

Modifier and TypeMethod and Description
public int
flowControlLength()

Returns: the flow control length, equivalent to the sum of data bytes and padding bytes

public ByteBuffer
public boolean
public int
padding()

Returns: the number of bytes used for padding that count towards flow control.

public int
remaining()

Returns: the number of data bytes remaining.

public String
toString()

Overrides org.eclipse.jetty.http2.frames.Frame.toString.

Returns a string representation of the object.

public DataFrame
Inherited from org.eclipse.jetty.http2.frames.StreamFrame:
getStreamId

Field Detail

databack to summary
private final ByteBuffer data
endStreamback to summary
private final boolean endStream
lengthback to summary
private final int length
paddingback to summary
private final int padding

Constructor Detail

DataFrameback to summary
public DataFrame(ByteBuffer data, boolean endStream)
DataFrameback to summary
public DataFrame(int streamId, ByteBuffer data, boolean endStream)
DataFrameback to summary
public DataFrame(int streamId, ByteBuffer data, boolean endStream, int padding)

Method Detail

flowControlLengthback to summary
public int flowControlLength()
Returns:int

the flow control length, equivalent to the sum of data bytes and padding bytes

getByteBufferback to summary
public ByteBuffer getByteBuffer()
isEndStreamback to summary
public boolean isEndStream()
paddingback to summary
public int padding()
Returns:int

the number of bytes used for padding that count towards flow control.

remainingback to summary
public int remaining()
Returns:int

the number of data bytes remaining.

toStringback to summary
public String toString()

Overrides org.eclipse.jetty.http2.frames.Frame.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override
withStreamIdback to summary
public DataFrame withStreamId(int streamId)

Implements abstract org.eclipse.jetty.http2.frames.StreamFrame.withStreamId.

Annotations
@Override