org.apache.hc.core5.http2.impl.nio

## Class FrameInputBuffer

- java.lang.Object
- - org.apache.hc.core5.http2.impl.nio.FrameInputBuffer

-     public final class FrameInputBuffer
      extends Object

  Frame input buffer for HTTP/2 non-blocking connections.
  Since:
    5.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FrameInputBuffer(BasicH2TransportMetrics metrics, int maxFramePayloadSize)`
    `FrameInputBuffer(int maxFramePayloadSize)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `H2TransportMetrics` | `getMetrics()`
    `void` | `put(ByteBuffer src)`
    `RawFrame` | `read(ReadableByteChannel channel)`
    `void` | `reset()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### FrameInputBuffer

          public FrameInputBuffer(BasicH2TransportMetrics metrics,
                          int maxFramePayloadSize)

    - #### FrameInputBuffer

          public FrameInputBuffer(int maxFramePayloadSize)

  - ### Method Detail

    - #### put

          public void put(ByteBuffer src)

    - #### read

          public RawFrame read(ReadableByteChannel channel)
                        throws IOException

      Throws:
        `IOException`

    - #### reset

          public void reset()

    - #### getMetrics

          public H2TransportMetrics getMetrics()

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.