Package org.jastacry.layer
Class ReadWriteLayer
- java.lang.Object
-
- org.jastacry.layer.AbstractBasicLayer
-
- org.jastacry.layer.ReadWriteLayer
-
public class ReadWriteLayer extends AbstractBasicLayer
Read write layer for IO purpose.SPDX-License-Identifier: MIT
- Author:
- kkretsch
-
-
Field Summary
-
Fields inherited from class org.jastacry.layer.AbstractBasicLayer
endController, inputStream, logger, outputStream
-
-
Constructor Summary
Constructors Constructor Description ReadWriteLayer()
Constructor of class, calling super.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
encodeAndDecode(InputStream inputStream, OutputStream outputStream)
Local encode Stream function which does the real thing for Random Layer.boolean
equals(Object o)
Override equals method from object class.int
hashCode()
Override equals method from object class.void
init(String data)
init function.void
run()
Thread entry function for layer work.-
Methods inherited from class org.jastacry.layer.AbstractBasicLayer
progress, rangeCheck, readAllBytes, setAction, setEndController, setInputStream, setOutputStream, setRealLayerName, toString
-
-
-
-
Method Detail
-
run
public final void run()
Description copied from class:AbstractBasicLayer
Thread entry function for layer work.- Specified by:
run
in interfaceRunnable
- Overrides:
run
in classAbstractBasicLayer
-
encodeAndDecode
public final void encodeAndDecode(InputStream inputStream, OutputStream outputStream) throws JastacryException
Description copied from interface:Layer
Local encode Stream function which does the real thing for Random Layer.- Parameters:
inputStream
- incoming dataoutputStream
- outgoing data- Throws:
JastacryException
- thrown on error
-
init
public final void init(String data)
init function.- Parameters:
data
- to initialize nothing.
-
equals
public boolean equals(Object o)
Override equals method from object class.
-
-