Package org.jastacry.layer
Class AsciiTransportLayer
- java.lang.Object
-
- org.jastacry.layer.AbstractBasicLayer
-
- org.jastacry.layer.AsciiTransportLayer
-
public class AsciiTransportLayer extends AbstractBasicLayer
Helper class for encode decode.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 AsciiTransportLayer()
Constructor of EncodeDecodeLayer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decStream(InputStream inputStream, OutputStream outputStream)
decode Stream function.void
encodeAndDecode(InputStream inputStream, OutputStream outputStream)
Local encode Stream function which does the real thing for Random Layer.void
encStream(InputStream inputStream, OutputStream outputStream)
encode Stream function.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
-
init
public final void init(String data)
init function.- Parameters:
data
- to initialise nothing.
-
encStream
public final void encStream(InputStream inputStream, OutputStream outputStream) throws JastacryException
encode Stream function.- Parameters:
inputStream
- incoming dataoutputStream
- outgoing data- Throws:
JastacryException
- thrown on error
-
decStream
public final void decStream(InputStream inputStream, OutputStream outputStream) throws JastacryException
decode Stream function.- Parameters:
inputStream
- incoming dataoutputStream
- outgoing data- Throws:
JastacryException
- thrown on error
-
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
-
equals
public boolean equals(Object o)
Override equals method from object class.
-
-