steg
Class NonCorrection

java.lang.Object
  extended by steg.NonCorrection
All Implemented Interfaces:
CorrectionCode

public class NonCorrection
extends java.lang.Object
implements CorrectionCode

The Class uses the identity function

Author:
Dominik Heider

Constructor Summary
NonCorrection()
           
 
Method Summary
 byte[] decode(byte[] seq)
          Decodes a bytearray
 byte[] encode(byte[] seq)
          Encodes a bytearray
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonCorrection

public NonCorrection()
Method Detail

encode

public byte[] encode(byte[] seq)
Description copied from interface: CorrectionCode
Encodes a bytearray

Specified by:
encode in interface CorrectionCode
Parameters:
seq - the bytearray to encode
Returns:
the encoded bytearray

decode

public byte[] decode(byte[] seq)
Description copied from interface: CorrectionCode
Decodes a bytearray

Specified by:
decode in interface CorrectionCode
Parameters:
seq - the bytearray to decode
Returns:
the decoded bytearray