org.jcodec.common.io
Class BitWriter

java.lang.Object
  extended by org.jcodec.common.io.BitWriter

public class BitWriter
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License Bitstream writer

Author:
The JCodec project

Constructor Summary
BitWriter(ByteBuffer buf)
           
 
Method Summary
 int curBit()
           
 void flush()
           
 BitWriter fork()
           
 ByteBuffer getBuffer()
           
 int position()
           
 void write1Bit(int bit)
           
 void writeNBit(int value, int n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BitWriter

public BitWriter(ByteBuffer buf)
Method Detail

flush

public void flush()

writeNBit

public final void writeNBit(int value,
                            int n)

write1Bit

public void write1Bit(int bit)

curBit

public int curBit()

fork

public BitWriter fork()

position

public int position()

getBuffer

public ByteBuffer getBuffer()


Copyright © 2013. All Rights Reserved.