Direct BufferedOutputStream to BufferedInputStream

  I got two functions.
   First one will read input from somewhere and will return BufferedInputStream type, so that second function can call Function1 and process the InputStream.
   Is it possible to do it? If yes, then how?

   Guys, any idea?
Who is Participating?
objectsConnect With a Mentor Commented:
Set up a pair of PipedInputStream/PipedOutputStream objects. Read the data from your bufferinputstream, process it, and write it to the pipedoutputstream.
Your other function can then read data from the pipedoutputstream.
realman1Author Commented:
That's the answer. :)
All Courses

From novice to tech pro — start learning today.