org.springframework.boot.loader.data

Class RandomAccessDataFile

    • Constructor Detail

    • Method Detail

      • getFile

        public File getFile()
        Returns the underlying File.
        Returns:
        the underlying file
      • read

        public byte[] read(long offset,
                           long length)
                    throws IOException
        Description copied from interface: RandomAccessData
        Reads the length bytes of data starting at the given offset.
        Specified by:
        read in interface RandomAccessData
        Parameters:
        offset - the offset from which data should be read
        length - the number of bytes to be read
        Returns:
        the data
        Throws:
        IOException - if the data cannot be read
        EOFException - if offset plus length is greater than the length of the file or subsection