Class ConcurrentBitFileBuffered

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, BitInSeekable

    public class ConcurrentBitFileBuffered
    extends BitFileBuffered
    • Constructor Detail

      • ConcurrentBitFileBuffered

        public ConcurrentBitFileBuffered​(java.io.File _file,
                                         int bufSize)
      • ConcurrentBitFileBuffered

        public ConcurrentBitFileBuffered​(java.io.File _file)
      • ConcurrentBitFileBuffered

        public ConcurrentBitFileBuffered​(RandomDataInput f)
      • ConcurrentBitFileBuffered

        public ConcurrentBitFileBuffered​(java.lang.String filename,
                                         int bufSize)
      • ConcurrentBitFileBuffered

        public ConcurrentBitFileBuffered​(java.lang.String filename)
    • Method Detail

      • readReset

        public BitIn readReset​(long startByteOffset,
                               byte startBitOffset,
                               long endByteOffset,
                               byte endBitOffset)
        Description copied from class: BitFileBuffered
        Reads from the file a specific number of bytes and after this call, a sequence of read calls may follow. The offsets given as arguments are inclusive. For example, if we call this method with arguments 0, 2, 1, 7, it will read in a buffer the contents of the underlying file from the third bit of the first byte to the last bit of the second byte.
        Specified by:
        readReset in interface BitInSeekable
        Overrides:
        readReset in class BitFileBuffered
        Parameters:
        startByteOffset - the starting byte to read from
        startBitOffset - the bit offset in the starting byte
        endByteOffset - the ending byte
        endBitOffset - the bit offset in the ending byte. This bit is the last bit of this entry.
        Returns:
        Returns the BitIn object to use to read that data
      • readReset

        public BitIn readReset​(long startByteOffset,
                               byte startBitOffset)
        Description copied from class: BitFileBuffered
        Reads from the file from a specific offset. After this call, a sequence of read calls may follow.
        Specified by:
        readReset in interface BitInSeekable
        Overrides:
        readReset in class BitFileBuffered
        Parameters:
        startByteOffset - the starting byte to read from
        startBitOffset - the bit offset in the starting byte
        Returns:
        Returns the BitIn object to use to read that data