commit | a19c3a9ace69ab20992e9e9acc483d972dc37ce1 | [log] [tgz] |
---|---|---|
author | Tor Andersson <tor.andersson@artifex.com> | Sun Jun 05 18:38:26 2022 +0200 |
committer | Sebastian Rasmussen <sebras@gmail.com> | Sun Jun 05 20:25:19 2022 +0200 |
tree | c7daadd81458e176baadc46a3d3c0cfe7a309d85 | |
parent | d80c1487dbbeef2b1bbf5961e437100c2c6d9321 [diff] |
Various file handling cleanups. Add a class to wrap an InputStream into something seekable for MuPDF rather than pre-loading the entire file into a buffer. If the input stream is not seekable, we may end up pre-loading the entire file anyway, but by using a BufferedInputStream. Use the ContentProvider to get the mime-type, file name, and file size used as a hint to the input stream wrapper.