public class TransformEngineChain.PacketTransformerChain extends java.lang.Object implements PacketTransformer
Constructor and Description |
---|
PacketTransformerChain(boolean rtp)
Creates an instance of this packet transformer and prepares it to
deal with RTP or RTCP according to the isRtp argument.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the transformer and underlying transform engines.
|
RawPacket[] |
reverseTransform(RawPacket[] pkts)
Reverse-transforms each packet in an array of packets.
|
RawPacket[] |
transform(RawPacket[] pkts)
Transforms each packet in an array of packets.
|
RawPacket[] |
transform(RawPacket[] pkts,
TransformEngine after)
Transforms the specified
pkts using the
TransformEngine s in the chain in order starting after a
specific TransformEngine . |
public PacketTransformerChain(boolean rtp)
rtp
- true if this transformer will be dealing with RTP
(i.e. will transform packets via the RTP transformers in this chain
rather than the RTCP ones) and false otherwise.public void close()
close
in interface PacketTransformer
public RawPacket[] reverseTransform(RawPacket[] pkts)
reverseTransform
in interface PacketTransformer
pkts
- the transformed packets to be restored.public RawPacket[] transform(RawPacket[] pkts)
pkts
using each of the
TransformEngine
s in the chain in order.transform
in interface PacketTransformer
pkts
- the packets to be transformedpublic RawPacket[] transform(RawPacket[] pkts, TransformEngine after)
pkts
using the
TransformEngine
s in the chain in order starting after a
specific TransformEngine
.pkts
- the array of RawPacket
s to transformafter
- the TransformEngine
in the chain after which the
transformation is to begin. If after
is not in the chain, the
transformation executes through the whole chain.RawPacket
s that is the result of the
transformation of pkts
using the TransformEngine
s in
the chain
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.