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) | 
| 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)
public void put(ByteBuffer src)
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.IOExceptionpublic RawFrame read(ReadableByteChannel channel) throws IOException
channel - the underlying data channel.IOExceptionpublic void reset()
public H2TransportMetrics getMetrics()
Copyright © 2005–2022 The Apache Software Foundation. All rights reserved.