Class TransformInputStream<T extends Closeable>

    • Constructor Detail

      • TransformInputStream

        protected TransformInputStream​(T socket)
        Initializes a new TransformInputStream which is to transform the packets received from a specific (network) socket.
        Parameters:
        socket - the (network) socket from which packets are to be received and transformed by the new instance
    • Method Detail

      • getTransformer

        public PacketTransformer getTransformer()
        Gets the PacketTransformer which is used to reverse-transform packets.
        Returns:
        the PacketTransformer which is used to reverse-transform packets
      • setTransformer

        public void setTransformer​(PacketTransformer transformer)
        Sets the PacketTransformer which is to be used to reverse-transform packets. Set to null to disable transformation.
        Parameters:
        transformer - the PacketTransformer which is to be used to reverse-transform packets.