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
public abstract class AbstractSocketProgressParser extends Object implements ProgressParser
-
-
Constructor Summary
Constructors Constructor Description AbstractSocketProgressParser(ProgressListener listener)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()protected abstract RunnablegetRunnable(CountDownLatch startSignal)protected abstract StringgetThreadName()voidstart()Starts the ProgressParser waiting for progress.voidstop()-
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 Detail
-
AbstractSocketProgressParser
public AbstractSocketProgressParser(ProgressListener listener)
-
-
Method Detail
-
getThreadName
@CheckReturnValue protected abstract String getThreadName()
-
getRunnable
protected abstract Runnable getRunnable(CountDownLatch startSignal)
-
start
public void start()
Starts the ProgressParser waiting for progress.- Specified by:
startin interfaceProgressParser- Throws:
IllegalThreadStateException- if the parser was already started.
-
stop
public void stop() throws IOException
- Specified by:
stopin interfaceProgressParser- Throws:
IOException
-
close
public void close() throws IOException
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
-