Class AbstractTransformOutputStream

    • Constructor Detail

      • AbstractTransformOutputStream

        public AbstractTransformOutputStream()
    • Method Detail

      • getTransformer

        public PacketTransformer getTransformer()
        Gets the PacketTransformer used by this instance to transform RawPackets.
        Specified by:
        getTransformer in interface TransformOutputStream
        Returns:
        the PacketTransformer used by this instance to transform RawPackets
      • setTransformer

        public void setTransformer​(PacketTransformer transformer)
        Sets the PacketTransformer to be used by this instance to transform RawPackets.
        Specified by:
        setTransformer in interface TransformOutputStream
        Parameters:
        transformer - the PacketTransformer to be used by this instance to transform RawPackets
      • transform

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