public class TransformOutputStreamImpl extends AbstractTransformOutputStream
OutputDataStream
in the implementation of the interface
TransformOutputStream
.Constructor and Description |
---|
TransformOutputStreamImpl(javax.media.rtp.OutputDataStream outputDataStream)
Initializes a new
TransformOutputStreamImpl which is to
facilitate a specific OutputDataStream in the implementation of
the interface TransformOutputStream . |
Modifier and Type | Method and Description |
---|---|
void |
setTransformer(PacketTransformer transformer)
Sets the
PacketTransformer to be used by this instance to
transform RawPacket s. |
protected RawPacket[] |
transform(RawPacket[] pkts,
java.lang.Object after)
Transforms a specified array of
RawPacket s using the
PacketTransformer associated with this instance (if any). |
int |
write(byte[] buf,
int off,
int len) |
getTransformer, transform
public TransformOutputStreamImpl(javax.media.rtp.OutputDataStream outputDataStream)
TransformOutputStreamImpl
which is to
facilitate a specific OutputDataStream
in the implementation of
the interface TransformOutputStream
.outputDataStream
- the OutputDataStream
the new instance is
to facilitate in the implementation of the interface
TransformOutputStream
public final void setTransformer(PacketTransformer transformer)
PacketTransformer
to be used by this instance to
transform RawPacket
s.setTransformer
in interface TransformOutputStream
setTransformer
in class AbstractTransformOutputStream
transformer
- the PacketTransformer
to be used by this
instance to transform RawPacket
sprotected RawPacket[] transform(RawPacket[] pkts, java.lang.Object after)
RawPacket
s using the
PacketTransformer
associated with this instance (if any).pkts
- the RawPacket
s to transformafter
- RawPacket
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
.public int write(byte[] buf, int off, int len)
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.