Package javax.media.datasink

Examples of javax.media.datasink.EndOfStreamEvent


      printDataInfo(readBuffer);

      // Check to see if we are done with all the streams.
      if (readBuffer.isEOM() && checkDone(stream)) {
    sendEvent(new EndOfStreamEvent(this));
      }
  }
View Full Code Here


            else if (read < 0)
            {
              eos = true;
                            raf.close();
              logger.fine("EOS");
              notifyDataSinkListeners(new EndOfStreamEvent(Handler.this, "EOS"));    // TODO: needed?
              break;
            }
            else
           
                            raf.write(buffer, 0, read);
                        }
          }
          }
                catch (InterruptedException e)
                {
                    break;
                }
                catch (InterruptedIOException e)
          {
                    break;
                }
          catch (IOException e)
          {
              // mgodehardt: do we need this, read end dead may be thrown, its a 0 read, and we continue streaming
            //logger.log(Level.FINE, "" + e, e);
            //notifyDataSinkListeners(new DataSinkErrorEvent(Handler.this, "" + e));
          }
            }
           
            setClosed();
           
      try
      {
                raf.close();
               
                // mgodehardt: do we need this ?
                logger.fine("EOS");
                notifyDataSinkListeners(new EndOfStreamEvent(Handler.this, "EOS"));     // TODO: needed?
            }
            catch ( Exception dontcare )
            {
            }
    }
View Full Code Here

TOP

Related Classes of javax.media.datasink.EndOfStreamEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.