troubleshooting Question

Buffering in an input stream

Avatar of mte01
mte01Flag for Lebanon asked on
Java
15 Comments1 Solution660 ViewsLast Modified:
Hey experts,

 I am writing an application in J2ME (where there's no BufferedInputStream), and I want to buffer incoming bytes from an input stream (before using it to play an audio file), how can we in code buffer incoming bytes of an input stream before starting to play?? (and also as we play we would buffer more)...any help on doing that??

P.S.: The need of buffering arised from the some memory shortage, check the following question:
https://www.experts-exchange.com/Programming/Programming_Languages/Java/Q_21527086.html
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 15 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 15 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros