|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.siefkes.nlstego.textgen.StegoCoder
net.siefkes.nlstego.textgen.StegoEncoder
public class StegoEncoder
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.
| 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 |
|---|
public StegoEncoder(Configuration conf,
TextModel model)
conf - the configuration to usemodel - the text model to use| Method Detail |
|---|
public String encode(InputStream in)
throws IOException
in - stream containing the bit sequence to encode; not closed
by this method
IOException - if an I/O error occurspublic String encode(byte[] bytes)
bytes - the bit sequence to encode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||