uk.co.mmscomputing.io
Class BitInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
uk.co.mmscomputing.io.BitInputStream
- All Implemented Interfaces:
- java.io.Closeable
- Direct Known Subclasses:
- LZWInputStream, ModHuffmanInputStream
public class BitInputStream
- extends java.io.FilterInputStream
| Fields inherited from class java.io.FilterInputStream |
in |
| Methods inherited from class java.io.FilterInputStream |
available, close, mark, markSupported, read, read, read, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
count
protected int count
nextByteMoreSignificant
protected boolean nextByteMoreSignificant
BitInputStream
public BitInputStream(java.io.InputStream in,
boolean nbms)
BitInputStream
public BitInputStream(java.io.InputStream in)
setNextByteMoreSignificant
public void setNextByteMoreSignificant(boolean nextByteMoreSignificant)
reset
public void reset()
throws java.io.IOException
- Overrides:
reset in class java.io.FilterInputStream
- Throws:
java.io.IOException
availableBits
public int availableBits()
skipPadding
public void skipPadding(int bits)
throws java.io.IOException
- Throws:
java.io.IOException
readBit
public int readBit()
throws java.io.IOException
- Throws:
java.io.IOException
readBits
public int readBits(int bitcount)
throws java.io.IOException
- Throws:
java.io.IOException
cbCount
protected int cbCount()
throws java.io.IOException
- Throws:
java.io.IOException
needBits
public void needBits(int bitcount)
throws java.io.IOException
- Throws:
java.io.IOException
clrBits
protected void clrBits(int bitcount)
getBits
protected int getBits(int bitcount)
main
public static void main(java.lang.String[] argv)
Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.