net.siefkes.nlstego.textgen
Class StegoEncoder

java.lang.Object
  extended by net.siefkes.nlstego.textgen.StegoCoder
      extended by net.siefkes.nlstego.textgen.StegoEncoder

public class StegoEncoder
extends StegoCoder

A stego encoder hides bit sequences into inconspicuous stego texts. Instances of this class are immutable and thus thread-safe.

Instances of this class are not stateless and must be synchronized externally, if required.

Version:
$Revision: 1.20 $, $Date: 2005/07/28 15:03:12 $, $Author: siefkes $
Author:
Christian Siefkes

Constructor Summary
StegoEncoder(Configuration conf, TextModel model)
          Creates a new instance.
 
Method Summary
 String encode(byte[] bytes)
          Reads a bit sequence and encodes it into an inconspicuous stego text.
 String encode(InputStream in)
          Reads a bit sequence and encodes it into an inconspicuous stego text.
 
Methods inherited from class net.siefkes.nlstego.textgen.StegoCoder
debugBits, debugSingleton, filterFirst, getTextModel, resetState, toString, updateState
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StegoEncoder

public StegoEncoder(Configuration conf,
                    TextModel model)
Creates a new instance.

Parameters:
conf - the configuration to use
model - the text model to use
Method Detail

encode

public String encode(InputStream in)
              throws IOException
Reads a bit sequence and encodes it into an inconspicuous stego text.

Parameters:
in - stream containing the bit sequence to encode; not closed by this method
Returns:
the generated stego text
Throws:
IOException - if an I/O error occurs

encode

public String encode(byte[] bytes)
Reads a bit sequence and encodes it into an inconspicuous stego text.

Parameters:
bytes - the bit sequence to encode
Returns:
the generated stego text


Copyright © 2003-2005 Christian Siefkes. All Rights Reserved.