net.siefkes.nlstego.textgen
Class StegoDecoder
java.lang.Object
net.siefkes.nlstego.textgen.StegoCoder
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
|
Method Summary |
byte[] |
decode(Reader reader)
Reads a stego text and decodes the embedded bit sequence. |
StegoDecoder
public StegoDecoder(Configuration conf,
TextModel model)
- Creates a new instance.
- Parameters:
conf - the configuration to usemodel - the text model to use
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.