Link Details

Link 133010 thumbnail
User 193991 avatar

By spajus
via paranoid-engineering.blogspot.com
Published: Nov 12 2008 / 11:37

If you have several Java InputStreams that you want to queue up into a single InputStream object, you can use this
  • 7
  • 2
  • 1339
  • 350

Comments

Add your comment
User 219537 avatar

trevor replied ago:

0 votes Vote down Vote up Reply

Useful. I would add synchronization, or not allow streams to be added after construction. Also, the if() in read() should be while() in case empty streams are in the chain. Should close() close all the streams and not just the current?

User 285418 avatar

Motion Control replied ago:

0 votes Vote down Vote up Reply

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (7)



Voters Against This Link (2)