Solved

Direct BufferedOutputStream to BufferedInputStream

Posted on 2002-05-01
3
322 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
[X]
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
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
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 “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

627 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