Issue Feature Closed

#60221Read FAL resources in chunks

Bernhard Kraft 07/10/14, 00:28 updated 11/10/21, 23:20

Description

Usually file layers like the Linux file system support a basic common set of IO operations.
If you ever have to implement a file system in linux or you are going to implement a java class implementing the file interface you will notice that you will have to implement the following methods:

open()
close()
read()
seek()
tell()
write()

… of course there are a few others like “size()” and for handling access control.

currently FAL only supports open/close as making an instance of the “File” object could get seen as a call to open().

This issue suggests to add additional methods to File() which allows those basic operations.

For the LocalDriver a fopen()/filehandle in the constructor and wrappers for fread/fwrite/fseek/ftell would be sufficient.

Driver for S3 Amazon could for example manage internal position pointers and use the “Range” header to retrieve requested chunks from the storage (http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectGET.html)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.