Class AbstractTransformOutputStream
- java.lang.Object
-
- org.jitsi.impl.neomedia.transform.AbstractTransformOutputStream
-
- All Implemented Interfaces:
javax.media.rtp.OutputDataStream,TransformOutputStream
- Direct Known Subclasses:
TransformOutputStreamImpl
public abstract class AbstractTransformOutputStream extends Object implements TransformOutputStream
Facilitates the implementation of the interfaceTransformOutputStream.- Author:
- Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description AbstractTransformOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PacketTransformergetTransformer()Gets thePacketTransformerused by this instance to transformRawPackets.voidsetTransformer(PacketTransformer transformer)Sets thePacketTransformerto be used by this instance to transformRawPackets.protected RawPacket[]transform(RawPacket[] pkts)Transforms a specified array ofRawPackets using thePacketTransformerassociated with this instance (if any).
-
-
-
Method Detail
-
getTransformer
public PacketTransformer getTransformer()
Gets thePacketTransformerused by this instance to transformRawPackets.- Specified by:
getTransformerin interfaceTransformOutputStream- Returns:
- the
PacketTransformerused by this instance to transformRawPackets
-
setTransformer
public void setTransformer(PacketTransformer transformer)
Sets thePacketTransformerto be used by this instance to transformRawPackets.- Specified by:
setTransformerin interfaceTransformOutputStream- Parameters:
transformer- thePacketTransformerto be used by this instance to transformRawPackets
-
transform
protected RawPacket[] transform(RawPacket[] pkts)
Transforms a specified array ofRawPackets using thePacketTransformerassociated with this instance (if any).- Parameters:
pkts- theRawPackets to transform- Returns:
- an array of
RawPackets which are the result of the transformation of the specifiedpktsusing thePacketTransformerassociated with this instance. If there is noPacketTransformerassociated with this instance, returnspkts.
-
-