Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.ccdtovcd.mpeg
Class BitOutputStream  view BitOutputStream download BitOutputStream.java

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.FilterOutputStream
          extended byjava.io.DataOutputStream
              extended byorg.ccdtovcd.mpeg.BitOutputStream
All Implemented Interfaces:
java.io.DataOutput

public class BitOutputStream
extends java.io.DataOutputStream


Field Summary
private  int bitCount
           
private  int buffer
           
private static byte ONEMASK
           
 
Fields inherited from class java.io.DataOutputStream
written
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
BitOutputStream(java.io.OutputStream out)
           
 
Method Summary
 void close()
          This method closes the underlying OutputStream.
 void flush()
          This method flushes any unwritten bytes to the underlying stream.
 void flushBits()
           
 void writeBit(boolean v)
           
 void writeBit(int bit)
           
 void writeBits(long bits, int numBits)
           
 void writeBytes(int[] bytes)
           
 
Methods inherited from class java.io.DataOutputStream
size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.io.DataOutput
write
 

Field Detail

ONEMASK

private static final byte ONEMASK
See Also:
Constant Field Values

buffer

private int buffer

bitCount

private int bitCount
Constructor Detail

BitOutputStream

public BitOutputStream(java.io.OutputStream out)
Method Detail

writeBit

public void writeBit(int bit)
              throws java.io.IOException

writeBit

public void writeBit(boolean v)
              throws java.io.IOException

writeBits

public void writeBits(long bits,
                      int numBits)
               throws java.io.IOException

writeBytes

public void writeBytes(int[] bytes)
                throws java.io.IOException

flushBits

public void flushBits()
               throws java.io.IOException

flush

public void flush()
           throws java.io.IOException
Description copied from class: java.io.DataOutputStream
This method flushes any unwritten bytes to the underlying stream.


close

public void close()
           throws java.io.IOException
Description copied from class: java.io.FilterOutputStream
This method closes the underlying OutputStream. Any further attempts to write to this stream may throw an exception.