Single input -> [some special class that works with ReaderS or InputStreamS] -> multiple outputs

R

raven

Hello, is there a way to add an "adapter" that would allow to attach
multiple independent ReaderS to a single Reader? (They would read the same
stream of characters but would be able to be in different states, eg.
reader1 has read 100 characters already but reader2 has read 2000
characters ).

I've found this "edu.iu.iv.common.util.SIMOStreamRedirecter" (SIMO: Single
Input, Multiple Output)
http://iv.slis.indiana.edu/api/edu/iu/iv/common/util/SIMOStreamRedirecter.html
But:
1. I think that it is quite probable that similar thing exists in the
standard Java libraries
2. I'm not quite sure why the edu.iu.iv.common.util.SIMOStreamRedirecter "is
a" java.lang.Thread

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top