Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Direct BufferedOutputStream to BufferedInputStream

Posted on 2002-05-01
3
315 Views
Last Modified: 2008-03-04
  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?
0
Comment
Question by:realman1
  • 2
3 Comments
 
LVL 92

Accepted Solution

by:
objects earned 100 total points
ID: 6985129
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.
0
 

Author Comment

by:realman1
ID: 6985762
That's the answer. :)
0
 
LVL 92

Expert Comment

by:objects
ID: 6987486
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This video teaches viewers about errors in exception handling.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question