org.apache.sanselan.common.mylzw
Class MyBitInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.apache.sanselan.common.mylzw.MyBitInputStream
All Implemented Interfaces:
java.io.Closeable, BinaryConstants

public class MyBitInputStream
extends java.io.InputStream
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
MyBitInputStream(java.io.InputStream is, int byteOrder)
           
 
Method Summary
 void flushCache()
           
 long getBytesRead()
           
 int read()
           
 int readBits(int SampleBits)
           
 void setTiffLZWMode()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyBitInputStream

public MyBitInputStream(java.io.InputStream is,
                        int byteOrder)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

setTiffLZWMode

public void setTiffLZWMode()

readBits

public int readBits(int SampleBits)
             throws java.io.IOException
Throws:
java.io.IOException

flushCache

public void flushCache()

getBytesRead

public long getBytesRead()


Copyright © 2007-2009. All Rights Reserved.