Class TransformOutputStreamImpl
- java.lang.Object
-
- org.jitsi.impl.neomedia.transform.AbstractTransformOutputStream
-
- org.jitsi.impl.neomedia.transform.TransformOutputStreamImpl
-
- All Implemented Interfaces:
javax.media.rtp.OutputDataStream,TransformOutputStream
public class TransformOutputStreamImpl extends AbstractTransformOutputStream
FacilitatesOutputDataStreamin the implementation of the interfaceTransformOutputStream.- Author:
- Lyubomir Marinov
-
-
Constructor Summary
Constructors Constructor Description TransformOutputStreamImpl(javax.media.rtp.OutputDataStream outputDataStream)Initializes a newTransformOutputStreamImplwhich is to facilitate a specificOutputDataStreamin the implementation of the interfaceTransformOutputStream.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetTransformer(PacketTransformer transformer)Sets thePacketTransformerto be used by this instance to transformRawPackets.protected RawPacket[]transform(RawPacket[] pkts, Object after)Transforms a specified array ofRawPackets using thePacketTransformerassociated with this instance (if any).intwrite(byte[] buf, int off, int len)-
Methods inherited from class org.jitsi.impl.neomedia.transform.AbstractTransformOutputStream
getTransformer, transform
-
-
-
-
Constructor Detail
-
TransformOutputStreamImpl
public TransformOutputStreamImpl(javax.media.rtp.OutputDataStream outputDataStream)
Initializes a newTransformOutputStreamImplwhich is to facilitate a specificOutputDataStreamin the implementation of the interfaceTransformOutputStream.- Parameters:
outputDataStream- theOutputDataStreamthe new instance is to facilitate in the implementation of the interfaceTransformOutputStream
-
-
Method Detail
-
setTransformer
public final void setTransformer(PacketTransformer transformer)
Sets thePacketTransformerto be used by this instance to transformRawPackets.- Specified by:
setTransformerin interfaceTransformOutputStream- Overrides:
setTransformerin classAbstractTransformOutputStream- Parameters:
transformer- thePacketTransformerto be used by this instance to transformRawPackets
-
transform
protected RawPacket[] transform(RawPacket[] pkts, Object after)
Transforms a specified array ofRawPackets using thePacketTransformerassociated with this instance (if any).- Parameters:
pkts- theRawPackets to transformafter-- 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.
-
write
public int write(byte[] buf, int off, int len)
-
-