tag:blogger.com,1999:blog-109529730340432578.post3471912917408331770..comments2023-06-09T16:06:19.590+03:00Comments on Paranoid Engineering: InputStreamChainTomas Varaneckashttp://www.blogger.com/profile/08399177196889385951noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-109529730340432578.post-77465400624912575582008-11-13T07:07:00.000+02:002008-11-13T07:07:00.000+02:00@casper bangYeah, I guess you're right, haven't th...@casper bang<BR/>Yeah, I guess you're right, haven't thought of adding vararg constructor in first place. I'll update the source.<BR/><BR/>@phloser<BR/>Damn, I knew there would be something like this done already, but I was doing this in a hurry and a quick research gave me no results so it was faster to roll my own... Anyway, I decompiled and looked at java.lang.SequenceInputStream implementation. It looks old and somewhat cumbersome, with Enumeration in the constructor, etc. <BR/>No matter what, it was fun writing my own class. :)Tomas Varaneckashttps://www.blogger.com/profile/08399177196889385951noreply@blogger.comtag:blogger.com,1999:blog-109529730340432578.post-28494483277093913372008-11-13T01:01:00.000+02:002008-11-13T01:01:00.000+02:00java.io.SequenceInputStream?java.io.SequenceInputStream?Unknownhttps://www.blogger.com/profile/14185909510960868725noreply@blogger.comtag:blogger.com,1999:blog-109529730340432578.post-64684659717791884582008-11-12T19:11:00.000+02:002008-11-12T19:11:00.000+02:00Cool, I can see how that can be handy! But why not...Cool, I can see how that can be handy! But why not use vararg and allow links in the chain to be added through the constructor? Method chaining introduces mutability and a wider, more complex state space that I don't see is necessary here.Casper Banghttps://www.blogger.com/profile/09493174484116672294noreply@blogger.com