org.apache.sanselan.common.mylzw
Class MyBitOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.apache.sanselan.common.mylzw.MyBitOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, BinaryConstants

public class MyBitOutputStream
extends java.io.OutputStream
implements BinaryConstants


Field Summary
 
Fields inherited from interface org.apache.sanselan.common.BinaryConstants
BYTE_ORDER_BIG_ENDIAN, BYTE_ORDER_INTEL, BYTE_ORDER_LEAST_SIGNIFICANT_BYTE, BYTE_ORDER_LITTLE_ENDIAN, BYTE_ORDER_LSB, BYTE_ORDER_MOST_SIGNIFICANT_BYTE, BYTE_ORDER_MOTOROLA, BYTE_ORDER_MSB, BYTE_ORDER_NETWORK
 
Constructor Summary
MyBitOutputStream(java.io.OutputStream os, int byteOrder)
           
 
Method Summary
 void flushCache()
           
 int getBytesWritten()
           
 void write(int value)
           
 void writeBits(int value, int SampleBits)
           
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyBitOutputStream

public MyBitOutputStream(java.io.OutputStream os,
                         int byteOrder)
Method Detail

write

public void write(int value)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

writeBits

public void writeBits(int value,
                      int SampleBits)
               throws java.io.IOException
Throws:
java.io.IOException

flushCache

public void flushCache()
                throws java.io.IOException
Throws:
java.io.IOException

getBytesWritten

public int getBytesWritten()


Copyright © 2007-2009. All Rights Reserved.