title: (J2me) Stream as a buffer?
body: <p>Here I got a j2me application and I need to transmit or save live data from a output stream. </p>
  
  <p>What could happen if I use one thread to write data to the stream and after writing certain no ofl bytes other thread to get a bytearray out of it save or transmit it and reset the stream to zero.. </p>
  
  <p>I.e calling reset on it .. This effectively equals to using stream as fixed size buffer..</p>
  
  <p>The constrain here is that I may not be able to use the byteBuffer object for the purpose</p>
  
  <p>will that make the stream invalid because the first thread is still wiring to it?</p>