Package com.biglybt.core.devices.impl
Class TranscodePipeFileSource
java.lang.Object
com.biglybt.core.devices.impl.TranscodePipe
com.biglybt.core.devices.impl.TranscodePipeFileSource
-
Nested Class Summary
Nested classes/interfaces inherited from class com.biglybt.core.devices.impl.TranscodePipe
TranscodePipe.errorListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final String
private RandomAccessFile
private int
private 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
ConstructorsModifierConstructorDescriptionprotected
TranscodePipeFileSource
(File _source_file, TranscodePipe.errorListener _error_listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
destroy()
protected void
handleSocket
(Socket socket) protected void
releaseRAF
(RandomAccessFile _raf) protected RandomAccessFile
protected void
write
(OutputStream os, String str) Methods inherited from class com.biglybt.core.devices.impl.TranscodePipe
getConnectionRate, getPort, getWriteSpeed, handlePipe, handleRAF, pause, reportError, resume, setMaxBytesPerSecond
-
Field Details
-
NL
- See Also:
-
source_file
-
raf
-
raf_count
private int raf_count
-
-
Constructor Details
-
TranscodePipeFileSource
protected TranscodePipeFileSource(File _source_file, TranscodePipe.errorListener _error_listener) throws IOException - Throws:
IOException
-
-
Method Details
-
handleSocket
- Specified by:
handleSocket
in classTranscodePipe
-
write
- Throws:
IOException
-
reserveRAF
- Overrides:
reserveRAF
in classTranscodePipe
- Throws:
IOException
-
releaseRAF
- Overrides:
releaseRAF
in classTranscodePipe
-
destroy
protected boolean destroy()- Overrides:
destroy
in classTranscodePipe
-