Class ReadWriteLayer

  • All Implemented Interfaces:
    java.lang.Runnable, Layer

    public class ReadWriteLayer
    extends AbstractBasicLayer
    Read write layer for IO purpose.

    SPDX-License-Identifier: MIT

    Author:
    kkretsch
    • Field Detail

      • LAYERNAME

        public static final java.lang.String LAYERNAME
        static name of the layer.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ReadWriteLayer

        public ReadWriteLayer()
        Constructor of class, calling super.
    • Method Detail

      • run

        public final void run()
        Description copied from class: AbstractBasicLayer
        Thread entry function for layer work.
        Specified by:
        run in interface java.lang.Runnable
        Overrides:
        run in class AbstractBasicLayer
      • encodeAndDecode

        public final void encodeAndDecode​(java.io.InputStream inputStream,
                                          java.io.OutputStream outputStream)
                                   throws JastacryException
        Description copied from interface: Layer
        Local encode Stream function which does the real thing for Random Layer.
        Parameters:
        inputStream - incoming data
        outputStream - outgoing data
        Throws:
        JastacryException - thrown on error
      • init

        public final void init​(java.lang.String data)
        init function.
        Parameters:
        data - to initialize nothing.
      • equals

        public boolean equals​(java.lang.Object o)
        Override equals method from object class.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        o - object to compare with
        Returns:
        true or false
      • hashCode

        public int hashCode()
        Override equals method from object class.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        hash of properties