View Single Post
  #2 (permalink)  
Old 08-07-2007, 07:49 AM
baltimore baltimore is offline
Member
 
Join Date: Jul 2007
Posts: 40
baltimore is on a distinguished road
I'm not sure about the type of input stream you are using. If you are using ByteArrayInputStream, every time you are about to read find out the number of bytes available for read without blocking using the available() method.
Reply With Quote