org.apache.sanselan.common.mylzw
Class BitsToByteInputStream

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

public class BitsToByteInputStream
extends java.io.InputStream


Constructor Summary
BitsToByteInputStream(MyBitInputStream is, int desiredDepth)
           
 
Method Summary
 int read()
           
 int readBits(int bitCount)
           
 int[] readBitsArray(int sampleBits, int length)
           
 
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

BitsToByteInputStream

public BitsToByteInputStream(MyBitInputStream is,
                             int desiredDepth)
Method Detail

read

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

readBits

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

readBitsArray

public int[] readBitsArray(int sampleBits,
                           int length)
                    throws java.io.IOException
Throws:
java.io.IOException


Copyright © 2007-2009. All Rights Reserved.