org.jcodec.codecs.common.biari
Class MQEncoder

java.lang.Object
  extended by org.jcodec.codecs.common.biari.MQEncoder

public class MQEncoder
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Binary ariphmetic encoder Half-way to MQ Coder

Author:
Jay Codec

Field Summary
static int CARRY_MASK
           
 
Constructor Summary
MQEncoder(OutputStream out)
           
 
Method Summary
 void encode(int symbol, Context cm)
          Encodes one symbol either 0 or 1
 void finish()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CARRY_MASK

public static final int CARRY_MASK
See Also:
Constant Field Values
Constructor Detail

MQEncoder

public MQEncoder(OutputStream out)
Method Detail

encode

public void encode(int symbol,
                   Context cm)
            throws IOException
Encodes one symbol either 0 or 1

Parameters:
symbol -
Throws:
IOException

finish

public void finish()
            throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.