class DefaultHttp2FrameReader implements Http2FrameReader, Http2FrameSizePolicy, Configuration {

  private void readPriorityFrame(
      final ChannelHandlerContext ctx, final ByteBuf payload, final Http2FrameListener listener)
      throws Http2Exception {
    final long word1 = payload.readUnsignedInt();
    final boolean exclusive = (word1 & 0x80000000L) != 0;
    final int streamDependency = (int) (word1 & 0x7FFFFFFFL);
    if (streamDependency == streamId) {
      throw streamError(streamId, PROTOCOL_ERROR, "A stream cannot depend on itself.");
    }
    final short weight = (short) (payload.readUnsignedByte() + 1);
    listener.onPriorityRead(ctx, streamId, streamDependency, weight, exclusive);
  }

  public  DefaultHttp2FrameReader();
  public  DefaultHttp2FrameReader(final boolean validateHeaders);
  public  DefaultHttp2FrameReader(final Http2HeadersDecoder headersDecoder);

}