Would it make sense to add a new constructor to java.io.SequenceInputStream?
Alan Bateman
alan.bateman at oracle.com
Thu Oct 17 13:57:16 UTC 2024
On 17/10/2024 04:47, David Alayachew wrote:
> Hello Core Libs Dev Team,
>
> Currently, java.io.SequenceInputStream only has 2 constructors -- one
> that takes in 2 instances of InputStream, and another that takes in an
> Enumeration of type InputStream.
>
> Would it make sense to add a third constructor that takes in multiple
> instances of InputStream? I don't know if a list, an array, varargs,
> etc makes more sense. But I would think a 3rd constructor would
> improve this API.
If you are exploring this topic then put InputStream.of(InputStream...
sources) on the list to try out. InputStream.of() could work the
equivalent of InputStream.nulInputStream().
-Alan
More information about the core-libs-dev
mailing list