Class HTTPRandomAccessFile

    • Method Detail

      • closeRemote

        public void closeRemote()
        Description copied from interface: ReadableRemoteFile
        Close any resources used to enable remote reading. For example, HTTPSession from httpservices, or S3Client from the AWS SDK
      • readRemote

        public int readRemote​(long pos,
                              byte[] buff,
                              int offset,
                              int len)
                       throws IOException
        Read directly from remote file, without going through the buffer.
        Parameters:
        pos - start here in the file
        buff - put data into this buffer
        offset - buffer offset
        len - this number of bytes
        Returns:
        actual number of bytes read
        Throws:
        IOException - on io error
      • length

        public long length()
        Description copied from class: RandomAccessFile
        Get the length of the file. The data in the buffer (which may not have been written the disk yet) is taken into account.
        Overrides:
        length in class RandomAccessFile
        Returns:
        the length of the file in bytes.