Class TransformOutputStreamImpl

  • All Implemented Interfaces:
    javax.media.rtp.OutputDataStream, TransformOutputStream

    public class TransformOutputStreamImpl
    extends AbstractTransformOutputStream
    Facilitates OutputDataStream in the implementation of the interface TransformOutputStream.
    Author:
    Lyubomir Marinov
    • Constructor Detail

      • TransformOutputStreamImpl

        public TransformOutputStreamImpl​(javax.media.rtp.OutputDataStream outputDataStream)
        Initializes a new TransformOutputStreamImpl which is to facilitate a specific OutputDataStream in the implementation of the interface TransformOutputStream.
        Parameters:
        outputDataStream - the OutputDataStream the new instance is to facilitate in the implementation of the interface TransformOutputStream
    • Method Detail

      • transform

        protected RawPacket[] transform​(RawPacket[] pkts,
                                        Object after)
        Transforms a specified array of RawPackets using the PacketTransformer associated with this instance (if any).
        Parameters:
        pkts - the RawPackets to transform
        after -
        Returns:
        an array of RawPackets 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.
      • write

        public int write​(byte[] buf,
                         int off,
                         int len)