net.siefkes.nlstego.textgen
Class StegoDecoder

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

public class StegoDecoder
extends StegoCoder

A stego decoder recovers the bit sequences hidden in 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.16 $, $Date: 2005/07/12 17:02:20 $, $Author: siefkes $
Author:
Christian Siefkes

Constructor Summary
StegoDecoder(Configuration conf, TextModel model)
          Creates a new instance.
 
Method Summary
 byte[] decode(Reader reader)
          Reads a stego text and decodes the embedded bit sequence.
 
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

StegoDecoder

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

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

decode

public byte[] decode(Reader reader)
              throws IOException
Reads a stego text and decodes the embedded bit sequence.

Parameters:
reader - reader containing the stego text to decode; not closed by this method
Returns:
outStream the decoded bit sequence is written to this stream
Throws:
IOException - if an I/O error occurs


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