[
https://issues.apache.org/jira/browse/IO-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18052189#comment-18052189
]
Gary D. Gregory edited comment on IO-883 at 1/15/26 7:15 PM:
-------------------------------------------------------------
What 2 dedicated classes?
What about the truncate() method? That would not be part of the "read"
operations IMO.
For example, see
https://issues.apache.org/jira/secure/attachment/13080238/SeekableReadOnlyByteChannel.patch
was (Author: garydgregory):
What 2 dedicated classes?
What about the truncate() method? That would not be part of the "read"
operations IMO.
> ByteArraySeekableByteChannel should optionally expose a read-only channel
> -------------------------------------------------------------------------
>
> Key: IO-883
> URL: https://issues.apache.org/jira/browse/IO-883
> Project: Commons IO
> Issue Type: Improvement
> Affects Versions: 2.21.0
> Reporter: Konrad Windszus
> Priority: Major
> Attachments: SeekableReadOnlyByteChannel.patch
>
>
> In certain cases there should be no writes being performed through the
> SeekableByteChannel. Similar as for files it should be possible to wrap it as
> read-only and throw {{NonWritableChannelException}} for all operations trying
> to write to the wrapped array.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)