Class MAMEncode
java.lang.Object
MAMEncode
- All Implemented Interfaces:
- Codec
public class MAMEncode
- extends Object
- implements Codec
Aritmetic coding for binomial and byte sequencies.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
model
private ArithmeticModel model
MAMEncode
public MAMEncode()
MAMEncode
public MAMEncode(ArithmeticModel mod)
setModel
public void setModel(ArithmeticModel mod)
processTransformation
public void processTransformation(InputStream in,
OutputStream out)
throws IOException
- This method encodes symbols to the output stream, one at a time.
- Specified by:
processTransformation
in interface Codec
- Throws:
IOException
bitPlusFollow
private void bitPlusFollow(boolean outBit,
BinaryOutputStream out,
int bitsToFollow)
throws IOException
- Throws:
IOException
Copyright © 2007 Aija Niissalo, Marko Laakso, Markus Heinonen.