org.mobicents.media.server.impl.resource.audio
Class RecorderStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.mobicents.media.server.impl.resource.audio.RecorderStream
All Implemented Interfaces:
java.io.Closeable

public class RecorderStream
extends java.io.InputStream

Author:
Oleg Kulikov

Field Summary
protected  int available
           
protected  boolean blocked
           
protected  java.util.List<org.mobicents.media.Buffer> buffers
           
protected  java.util.concurrent.Semaphore semaphore
           
 
Constructor Summary
RecorderStream(RecorderImpl recorder, long recordinglength)
           
 
Method Summary
 int available()
           
 int read()
           
 int read(byte[] buff)
           
 
Methods inherited from class java.io.InputStream
close, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffers

protected java.util.List<org.mobicents.media.Buffer> buffers

available

protected int available

semaphore

protected java.util.concurrent.Semaphore semaphore

blocked

protected boolean blocked
Constructor Detail

RecorderStream

public RecorderStream(RecorderImpl recorder,
                      long recordinglength)
Method Detail

available

public int available()
Overrides:
available in class java.io.InputStream

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] buff)
Overrides:
read in class java.io.InputStream


Copyright © 2009. All Rights Reserved.