Class BCFile.Reader

    • Method Detail

      • getDefaultCompressionName

        public String getDefaultCompressionName()
        Get the name of the default compression algorithm.
        Returns:
        the name of the default compression algorithm.
      • getBCFileVersion

        public Utils.Version getBCFileVersion()
        Get version of BCFile file being read.
        Returns:
        version of BCFile file being read.
      • getAPIVersion

        public Utils.Version getAPIVersion()
        Get version of BCFile API.
        Returns:
        version of BCFile API.
      • close

        public void close()
        Finishing reading the BCFile. Release all resources.
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
      • getBlockCount

        public int getBlockCount()
        Get the number of data blocks.
        Returns:
        the number of data blocks.
      • getDataBlock

        public BCFile.Reader.BlockReader getDataBlock​(int blockIndex)
                                               throws IOException
        Stream access to a Data Block.
        Parameters:
        blockIndex - 0-based data block index.
        Returns:
        BlockReader input stream for reading the data block.
        Throws:
        IOException