Package org.jastacry.layer
Class TransparentLayer
- java.lang.Object
-
- org.jastacry.layer.AbstractBasicLayer
-
- org.jastacry.layer.TransparentLayer
-
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
-
-
Field Summary
-
Fields inherited from class org.jastacry.layer.AbstractBasicLayer
endController, inputStream, logger, outputStream
-
-
Constructor Summary
Constructors Constructor Description TransparentLayer()
Constructor of TransparentLayer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeAndDecode(InputStream inputStream, OutputStream outputStream)
encode Stream function which does the real thing.boolean
equals(Object o)
Override equals method from object class.int
hashCode()
Override equals method from object class.void
init(String data)
init function.-
Methods inherited from class org.jastacry.layer.AbstractBasicLayer
progress, rangeCheck, readAllBytes, run, setAction, setEndController, setInputStream, setOutputStream, setRealLayerName, toString
-
-
-
-
Method Detail
-
encodeAndDecode
public final void encodeAndDecode(InputStream inputStream, OutputStream outputStream) throws JastacryException
encode Stream function which does the real thing.- Parameters:
inputStream
- incoming dataoutputStream
- 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.
-
-