| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private long | |
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final List | Returns: the payload bytes available so far, an empty list if no bytes are available or the whole payload has already been reada buffers)BuffersReader that contains payload bytes.Reads remaining payload bytes from the given |
| public final ByteBuffer | Returns: the payload bytes available in the given buffer, ornull if all payload has been read.a buffer)ByteBuffer that contains payload bytes.Reads remaining payload bytes from the given |
| public final long | Returns: the number of payload bytes that remains to readReturns the number of payload bytes that remains to read. |
| public final long | streamingLength()
Overrides jdk. Overrides default jdk. Returns the portion of the frame payload that can be read after the frame was created, when the current frame can be read as a partial frame, otherwise 0, if the payload can't be streamed. |
| public String | toString()
Overrides jdk. Returns a string representation of the object. |
| public void | writeHeaders(ByteBuffer
a buffer to write the headers into buf)Write the frame headers to the given buffer. |
| NONE | back to summary |
|---|---|
| private static final List<ByteBuffer> NONE | |
| remaining | back to summary |
|---|---|
| private long remaining | |
| streamingLength | back to summary |
|---|---|
| private final long streamingLength | |
| PartialFrame | back to summary |
|---|---|
| pack-priv PartialFrame(long frameType, long streamingLength) | |
| nextPayloadBytes | back to summary |
|---|---|
| public final List Reads remaining payload bytes from the given
| |
| nextPayloadBytes | back to summary |
|---|---|
| public final ByteBuffer nextPayloadBytes(ByteBuffer buffer) Reads remaining payload bytes from the given
| |
| remaining | back to summary |
|---|---|
| public final long remaining() Returns the number of payload bytes that remains to read.
| |
| streamingLength | back to summary |
|---|---|
| public final long streamingLength() Overrides jdk. Overrides default jdk. Doc from jdk. Returns the portion of the frame payload that can be read after the frame was created, when the current frame can be read as a partial frame, otherwise 0, if the payload can't be streamed.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides jdk. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| writeHeaders | back to summary |
|---|---|
| public void writeHeaders(ByteBuffer buf) Write the frame headers to the given buffer. API Note The caller will be responsible for writing the remaining length bytes of the frame content after writing the frame headers. Implementation Specification Usually the header of a frame is assumed to simply
contain the frame type and frame length.
Some subclasses of
| |