public final class AbstractionLeakingFrameUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static Tuple2<Integer,Frame> |
fromAbstractionLeakingFrame(Frame abstractionLeakingFrame)
Returns a
Tuple2 of the stream id, and the frame. |
static Frame |
toAbstractionLeakingFrame(ByteBufAllocator byteBufAllocator,
int streamId,
Frame frame)
Returns an abstraction leaking frame with the stream id and frame.
|
public static Tuple2<Integer,Frame> fromAbstractionLeakingFrame(Frame abstractionLeakingFrame)
Tuple2 of the stream id, and the frame. This strips the frame length and
stream id header from the abstraction leaking frame.abstractionLeakingFrame - the abstraction leaking frameTuple2 of the stream id, and the frameNullPointerException - if abstractionLeakingFrame is nullpublic static Frame toAbstractionLeakingFrame(ByteBufAllocator byteBufAllocator, int streamId, Frame frame)
byteBufAllocator - the ByteBufAllocator to usestreamId - the stream idframe - the frameNullPointerException - if byteBufAllocator or frame is null