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