public final class Frame extends Object implements NetworkEvent
Modifier and Type | Field and Description |
---|---|
static byte |
FIRST_FRAME |
static byte |
FIRST_SEG |
static int |
HEADER_SIZE |
static byte |
L1 |
static byte |
L2 |
static byte |
L3 |
static byte |
L4 |
static byte |
LAST_FRAME |
static byte |
LAST_SEG |
static byte |
RESERVED |
static byte |
VERSION |
Constructor and Description |
---|
Frame(byte flags,
SegmentType type,
byte track,
int channel,
ByteBuffer body) |
Modifier and Type | Method and Description |
---|---|
void |
delegate(NetworkDelegate delegate) |
ByteBuffer |
getBody() |
int |
getChannel() |
byte |
getFlags() |
int |
getSize() |
byte |
getTrack() |
SegmentType |
getType() |
boolean |
isFirstFrame() |
boolean |
isFirstSegment() |
boolean |
isLastFrame() |
boolean |
isLastSegment() |
String |
toString() |
public static final int HEADER_SIZE
public static final byte L1
public static final byte L2
public static final byte L3
public static final byte L4
public static final byte RESERVED
public static final byte VERSION
public static final byte FIRST_SEG
public static final byte LAST_SEG
public static final byte FIRST_FRAME
public static final byte LAST_FRAME
public Frame(byte flags, SegmentType type, byte track, int channel, ByteBuffer body)
public ByteBuffer getBody()
public byte getFlags()
public int getChannel()
public int getSize()
public SegmentType getType()
public byte getTrack()
public boolean isFirstSegment()
public boolean isLastSegment()
public boolean isFirstFrame()
public boolean isLastFrame()
public void delegate(NetworkDelegate delegate)
delegate
in interface NetworkEvent
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.