steg
Class BitCoding

java.lang.Object
  extended by steg.BitCoding

public class BitCoding
extends java.lang.Object

Author:
Dominik

Constructor Summary
BitCoding(DNACrypt dnacrypt)
          Creates an instance of BitCoding
 
Method Summary
 byte[] decode(char[] genome)
          Filters a file out of a RNA sequence
 char[] encode(byte[] file)
          Encodes a given byte array into an RNA sequence
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitCoding

public BitCoding(DNACrypt dnacrypt)
Creates an instance of BitCoding

Parameters:
dnacrypt -
Method Detail

encode

public char[] encode(byte[] file)
Encodes a given byte array into an RNA sequence

Parameters:
file - the byte array to encode
Returns:
the RNA sequence which contains the encoded file

decode

public byte[] decode(char[] genome)
Filters a file out of a RNA sequence

Parameters:
genome - the RNA sequence
Returns:
the filtered byte array