microsoft-azure-storage/src/com/microsoft/azure/storage/file/CloudFile.java
@DoesServiceRequest
    public final int downloadRangeToByteArray(final long offset, final Long length, final byte[] buffer,
            final int bufferOffset) throws StorageException {
        return this.downloadRangeToByteArray(offset, length, buffer, bufferOffset, null /* accessCondition */,
                null /* options */, null /* opContext */);
    }
@DoesServiceRequest
    public final int downloadRangeToByteArray(final long offset, final Long length, final byte[] buffer,
            final int bufferOffset) throws StorageException {
        return this.downloadRangeToByteArray(offset, length, buffer, bufferOffset, null /* accessCondition */,
                null /* options */, null /* opContext */);
    }
Downloads a range of bytes from the file to the given byte buffer.

@param offset
A <code>long</code> which represents the byte offset to use as the starting point for the source.
@param length
A <code>Long</code> which represents the number of bytes to read or null.
@param buffer
A <code>byte</code> array which represents the buffer to which the file bytes are downloaded.
@param bufferOffset
An <code>int</code> which represents the byte offset to use as the starting point for the target.

@throws StorageException