MAM API
(developer's version)

Class MAMEncode

java.lang.Object
  extended by MAMEncode
All Implemented Interfaces:
Codec

public class MAMEncode
extends Object
implements Codec

Aritmetic coding for binomial and byte sequencies.


Field Summary
private  ArithmeticModel model
           
 
Constructor Summary
MAMEncode()
           
MAMEncode(ArithmeticModel mod)
           
 
Method Summary
private  void bitPlusFollow(boolean outBit, BinaryOutputStream out, int bitsToFollow)
           
 void processTransformation(InputStream in, OutputStream out)
          This method encodes symbols to the output stream, one at a time.
 void setModel(ArithmeticModel mod)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

model

private ArithmeticModel model
Constructor Detail

MAMEncode

public MAMEncode()

MAMEncode

public MAMEncode(ArithmeticModel mod)
Method Detail

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

MAM API
(developer's version)

Copyright © 2007 Aija Niissalo, Marko Laakso, Markus Heinonen.