Feature #60221
closedRead FAL resources in chunks
0%
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)