com.aelitis.azureus.core.devices.impl
Class TranscodePipe
java.lang.Object
com.aelitis.azureus.core.devices.impl.TranscodePipe
- Direct Known Subclasses:
- TranscodePipeFileSource, TranscodePipeStreamSource, TranscodePipeStreamSource2
public abstract class TranscodePipe
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
paused
protected volatile boolean paused
destroyed
protected volatile boolean destroyed
bytes_available
protected volatile int bytes_available
max_bytes_per_sec
protected volatile int max_bytes_per_sec
sockets
protected List<Socket> sockets
TranscodePipe
protected TranscodePipe(TranscodePipe.errorListener _error_listener)
throws IOException
- Throws:
IOException
getConnectionRate
public long getConnectionRate()
getWriteSpeed
public long getWriteSpeed()
handleSocket
protected abstract void handleSocket(Socket socket)
handlePipe
protected void handlePipe(InputStream is,
OutputStream os)
reserveRAF
protected RandomAccessFile reserveRAF()
throws IOException
- Throws:
IOException
releaseRAF
protected void releaseRAF(RandomAccessFile raf)
handleRAF
protected void handleRAF(OutputStream os,
long position,
long length)
pause
protected void pause()
resume
protected void resume()
setMaxBytesPerSecond
public void setMaxBytesPerSecond(int max)
getPort
protected int getPort()
destroy
protected boolean destroy()
reportError
protected void reportError(Throwable error)