Class Frame
- java.lang.Object
-
- org.ow2.joram.mom.amqp.marshalling.Frame
-
public class Frame extends Object
Represents an AMQP wire-protocol frame: type, channel, size, payload, end.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetChannel()byte[]getPayload()intgetType()static FramereadFrom(InputStream in)StringtoString()static voidwriteTo(Frame frame, OutputStream out, int maxBodySize)
-
-
-
Field Detail
-
logger
private static final Logger logger
-
type
private int type
type code AMQP.FRAME_XXX constants
-
channel
private int channel
channel number, 0-65535
-
payload
private byte[] payload
payload bytes
-
-
Method Detail
-
readFrom
public static Frame readFrom(InputStream in) throws IOException, FrameErrorException
- Throws:
IOExceptionFrameErrorException
-
writeTo
public static void writeTo(Frame frame, OutputStream out, int maxBodySize) throws IOException
- Throws:
IOException
-
getChannel
public int getChannel()
- Returns:
- the channel
-
getPayload
public byte[] getPayload()
- Returns:
- the payload
-
getType
public int getType()
- Returns:
- the type
-
-