Class RawDataBlock

  • All Implemented Interfaces:
    ListManagedBlock

    public class RawDataBlock
    extends Object
    implements ListManagedBlock
    A big block created from an InputStream, holding the raw data
    Author:
    Marc Johnson (mjohnson at apache dot org
    • Constructor Detail

      • RawDataBlock

        public RawDataBlock​(loci.common.RandomAccessInputStream stream,
                            int size,
                            long pointer)
                     throws IOException
        Constructor RawDataBlock
        Parameters:
        stream - the InputStream from which the data will be read
        size - the block size
        Throws:
        IOException - on I/O errors, and if an insufficient amount of data is read
    • Method Detail

      • eof

        public boolean eof()
                    throws IOException
        When we read the data, did we hit end of file?
        Returns:
        true if no data was read because we were at the end of the file, else false
        Throws:
        IOException
      • getBlockSize

        public int getBlockSize()
      • getOffset

        public long getOffset()
      • getLength

        public int getLength()