You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I working on implementing S3 download framework with resume support. When using S3ObjectInputStream while downloading an object, I had to skip bytes in order to support resume of previously broken downloads. Calling skip() on S3ObjectInputStream takes forever (if the file is big) & it seems it is simply using the default skip() implementation. Here is what documentation says about default implementation:
The skip method of this class creates a byte array and then repeatedly reads into it until n bytes have been read or the end of the stream has been reached. Subclasses are encouraged to provide a more efficient implementation of this method. For instance, the implementation may depend on the ability to seek.
Is there a way i can efficiently seek to a specific position when using S3ObjectInputStream? Or is there any other alternative?
The text was updated successfully, but these errors were encountered:
I working on implementing S3 download framework with resume support. When using S3ObjectInputStream while downloading an object, I had to skip bytes in order to support resume of previously broken downloads. Calling skip() on S3ObjectInputStream takes forever (if the file is big) & it seems it is simply using the default skip() implementation. Here is what documentation says about default implementation:
Is there a way i can efficiently seek to a specific position when using S3ObjectInputStream? Or is there any other alternative?
The text was updated successfully, but these errors were encountered: