public final class FrameInputBuffer extends Object
Constructor and Description |
---|
FrameInputBuffer(BasicH2TransportMetrics metrics,
int maxFramePayloadSize) |
FrameInputBuffer(int maxFramePayloadSize) |
Modifier and Type | Method and Description |
---|---|
H2TransportMetrics |
getMetrics() |
void |
put(ByteBuffer src)
Deprecated.
|
RawFrame |
read(ByteBuffer src,
ReadableByteChannel channel)
Attempts to read a complete frame from the given source buffer and the underlying data
channel.
|
RawFrame |
read(ReadableByteChannel channel)
Attempts to read a complete frame from the underlying data channel.
|
void |
reset() |
public FrameInputBuffer(BasicH2TransportMetrics metrics, int maxFramePayloadSize)
public FrameInputBuffer(int maxFramePayloadSize)
@Deprecated public void put(ByteBuffer src)
read(ByteBuffer, ReadableByteChannel)
.public RawFrame read(ByteBuffer src, ReadableByteChannel channel) throws IOException
src
- the source buffer or null
if not available.channel
- the underlying data channel.null
a complete frame cannot be read.IOException
public RawFrame read(ReadableByteChannel channel) throws IOException
channel
- the underlying data channel.IOException
public void reset()
public H2TransportMetrics getMetrics()
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.