You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2023/04/25 20:44:00 UTC

[jira] [Closed] (IO-548) Add FileUtils#readFileToByteArray Offset,Size

     [ https://issues.apache.org/jira/browse/IO-548?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory closed IO-548.
------------------------------
    Resolution: Incomplete

Closing: No activity in 5 years.

> Add FileUtils#readFileToByteArray Offset,Size
> ---------------------------------------------
>
>                 Key: IO-548
>                 URL: https://issues.apache.org/jira/browse/IO-548
>             Project: Commons IO
>          Issue Type: New Feature
>          Components: Utilities
>    Affects Versions: 2.5
>            Reporter: David Mollitor
>            Priority: Minor
>
> Please two new versions of {{FileUtils#readFileToByteArray}}:
> # Read from an offset in the file, up to a certain length
> {{byte[] FileUtils#readFileToByteArray(long fileOffset, int fileLength}}
> # Read directly into an existing buffer from a given file offset and buffer length
> {{void FileUtils#readFileToByteArray(byte[] buf, long fileOffset, int fileLength, int bufOffset, int bufLength}}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)