public abstract class AbstractTransformOutputStream extends java.lang.Object implements TransformOutputStream
TransformOutputStream
.Constructor and Description |
---|
AbstractTransformOutputStream() |
Modifier and Type | Method and Description |
---|---|
PacketTransformer |
getTransformer()
Gets the
PacketTransformer used by this instance to transform
RawPacket s. |
void |
setTransformer(PacketTransformer transformer)
Sets the
PacketTransformer to be used by this instance to
transform RawPacket s. |
protected RawPacket[] |
transform(RawPacket[] pkts)
Transforms a specified array of
RawPacket s using the
PacketTransformer associated with this instance (if any). |
public PacketTransformer getTransformer()
PacketTransformer
used by this instance to transform
RawPacket
s.getTransformer
in interface TransformOutputStream
PacketTransformer
used by this instance to transform
RawPacket
spublic void setTransformer(PacketTransformer transformer)
PacketTransformer
to be used by this instance to
transform RawPacket
s.setTransformer
in interface TransformOutputStream
transformer
- the PacketTransformer
to be used by this
instance to transform RawPacket
sprotected RawPacket[] transform(RawPacket[] pkts)
RawPacket
s using the
PacketTransformer
associated with this instance (if any).pkts
- the RawPacket
s to transformRawPacket
s which are the result of the
transformation of the specified pkts
using the
PacketTransformer
associated with this instance. If there is no
PacketTransformer
associated with this instance, returns
pkts
.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.