org.apache.commons.compress.utils

Class BitInputStream

    • Constructor Detail

      • BitInputStream

        public BitInputStream(InputStream in,              ByteOrder byteOrder)
        Constructor taking an InputStream and its bit arrangement.
        Parameters:
        in - the InputStream
        byteOrder - the bit arrangement across byte boundaries, either BIG_ENDIAN (aaaaabbb bb000000) or LITTLE_ENDIAN (bbbaaaaa 000000bb)
    • Method Detail

      • clearBitCache

        public void clearBitCache()
        Clears the cache of bits that have been read from the underlying stream but not yet provided via readBits(int).
      • readBits

        public long readBits(int count)              throws IOException
        Returns at most 63 bits read from the underlying stream.
        Parameters:
        count - the number of bits to read, must be a positive number not bigger than 63.
        Returns:
        the bits concatenated as a long using the stream's byte order. -1 if the end of the underlying stream has been reached before reading the requested number of bits
        Throws:
        IOException - on error

Copyright © 2016 The Apache Software Foundation. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14