Package com.biglybt.core.devices.impl
Class TranscodePipeFileSource
- java.lang.Object
-
- com.biglybt.core.devices.impl.TranscodePipe
-
- com.biglybt.core.devices.impl.TranscodePipeFileSource
-
public class TranscodePipeFileSource extends TranscodePipe
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.biglybt.core.devices.impl.TranscodePipe
TranscodePipe.errorListener
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String
NL
private java.io.RandomAccessFile
raf
private int
raf_count
private java.io.File
source_file
-
Fields inherited from class com.biglybt.core.devices.impl.TranscodePipe
buffer_cache, buffer_cache_size, bytes_available, connection_speed, destroyed, max_bytes_per_sec, paused, refiller, server_socket, sockets, write_speed
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
TranscodePipeFileSource(java.io.File _source_file, TranscodePipe.errorListener _error_listener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
destroy()
protected void
handleSocket(java.net.Socket socket)
protected void
releaseRAF(java.io.RandomAccessFile _raf)
protected java.io.RandomAccessFile
reserveRAF()
protected void
write(java.io.OutputStream os, java.lang.String str)
-
Methods inherited from class com.biglybt.core.devices.impl.TranscodePipe
getConnectionRate, getPort, getWriteSpeed, handlePipe, handleRAF, pause, reportError, resume, setMaxBytesPerSecond
-
-
-
-
Field Detail
-
NL
private static final java.lang.String NL
- See Also:
- Constant Field Values
-
source_file
private java.io.File source_file
-
raf
private java.io.RandomAccessFile raf
-
raf_count
private int raf_count
-
-
Constructor Detail
-
TranscodePipeFileSource
protected TranscodePipeFileSource(java.io.File _source_file, TranscodePipe.errorListener _error_listener) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
handleSocket
protected void handleSocket(java.net.Socket socket)
- Specified by:
handleSocket
in classTranscodePipe
-
write
protected void write(java.io.OutputStream os, java.lang.String str) throws java.io.IOException
- Throws:
java.io.IOException
-
reserveRAF
protected java.io.RandomAccessFile reserveRAF() throws java.io.IOException
- Overrides:
reserveRAF
in classTranscodePipe
- Throws:
java.io.IOException
-
releaseRAF
protected void releaseRAF(java.io.RandomAccessFile _raf)
- Overrides:
releaseRAF
in classTranscodePipe
-
destroy
protected boolean destroy()
- Overrides:
destroy
in classTranscodePipe
-
-