Package net.bramp.ffmpeg.progress
Class AbstractSocketProgressParser
java.lang.Object
net.bramp.ffmpeg.progress.AbstractSocketProgressParser
- All Implemented Interfaces:
Closeable
,AutoCloseable
,ProgressParser
- Direct Known Subclasses:
TcpProgressParser
,UdpProgressParser
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected abstract Runnable
getRunnable
(CountDownLatch startSignal) protected abstract String
void
start()
Starts the ProgressParser waiting for progress.void
stop()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.bramp.ffmpeg.progress.ProgressParser
getUri
-
Constructor Details
-
AbstractSocketProgressParser
-
-
Method Details
-
getThreadName
-
getRunnable
-
start
Starts the ProgressParser waiting for progress.- Specified by:
start
in interfaceProgressParser
- Throws:
IllegalThreadStateException
- if the parser was already started.
-
stop
- Specified by:
stop
in interfaceProgressParser
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-