public class MatchFactory extends AbstractFactory
Match
instances.| Modifier and Type | Method and Description |
|---|---|
static MutableMatch |
createMatch(ProtocolVersion pv)
Creates a mutable match instance.
|
static void |
encodeMatch(Match match,
OfPacketWriter pkt)
Encodes a match, writing it into the supplied buffer.
|
static Match |
parseMatch(OfPacketReader pkt,
ProtocolVersion pv)
Parses a Match structure from the supplied buffer.
|
protected String |
tag()
Returns an identifying tag for the match factory.
|
mpe, mpe, mpe, mpeprotected String tag()
tag in class AbstractFactorypublic static Match parseMatch(OfPacketReader pkt, ProtocolVersion pv) throws MessageParseException
PacketBuffer to be advanced by the length of the structure
(including the padding).pkt - the data bufferpv - the protocol versionMessageParseException - if unable to parse the structurepublic static MutableMatch createMatch(ProtocolVersion pv)
pv - the protocol versionVersionNotSupportedException - if the version is not supportedpublic static void encodeMatch(Match match, OfPacketWriter pkt)
PacketBuffer to be advanced by the length of the match.match - the matchpkt - the buffer into which the match is to be writtenCopyright © 2014. All Rights Reserved.