Class TransparentLayer

  • All Implemented Interfaces:
    Runnable, Layer

    public class TransparentLayer
    extends AbstractBasicLayer
    A transparent layer just doing nothing with the data. Use it as an example framework to start with.

    SPDX-License-Identifier: MIT

    Author:
    Kai Kretschmann
    • Constructor Detail

      • TransparentLayer

        public TransparentLayer()
        Constructor of TransparentLayer.
    • Method Detail

      • encodeAndDecode

        public final void encodeAndDecode​(InputStream inputStream,
                                          OutputStream outputStream)
                                   throws JastacryException
        encode Stream function which does the real thing.
        Parameters:
        inputStream - incoming data
        outputStream - outgoing data
        Throws:
        JastacryException - thrown on error
      • init

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

        public boolean equals​(Object o)
        Override equals method from object class.
        Overrides:
        equals in class 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 Object
        Returns:
        hash of properties