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 TranscodePipe
TranscodePipe.errorListener -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate RandomAccessFileprivate intprivate FileFields inherited from class TranscodePipe
buffer_cache, buffer_cache_size, bytes_available, connection_speed, destroyed, max_bytes_per_sec, paused, refiller, server_socket, sockets, write_speed -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTranscodePipeFileSource(File _source_file, TranscodePipe.errorListener _error_listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandestroy()protected voidhandleSocket(Socket socket) protected voidreleaseRAF(RandomAccessFile _raf) protected RandomAccessFileprotected voidwrite(OutputStream os, String str) Methods inherited from class 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:
handleSocketin classTranscodePipe
-
write
- Throws:
IOException
-
reserveRAF
- Overrides:
reserveRAFin classTranscodePipe- Throws:
IOException
-
releaseRAF
- Overrides:
releaseRAFin classTranscodePipe
-
destroy
protected boolean destroy()- Overrides:
destroyin classTranscodePipe
-