Package net.bramp.ffmpeg.progress
Class UdpProgressParser
- java.lang.Object
-
- net.bramp.ffmpeg.progress.AbstractSocketProgressParser
-
- net.bramp.ffmpeg.progress.UdpProgressParser
-
- All Implemented Interfaces:
Closeable,AutoCloseable,ProgressParser
public class UdpProgressParser extends AbstractSocketProgressParser
-
-
Constructor Summary
Constructors Constructor Description UdpProgressParser(ProgressListener listener)UdpProgressParser(ProgressListener listener, int port, InetAddress addr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RunnablegetRunnable(CountDownLatch startSignal)protected StringgetThreadName()URIgetUri()The URL to parse to FFmpeg to communicate with this parservoidstop()-
Methods inherited from class net.bramp.ffmpeg.progress.AbstractSocketProgressParser
close, start
-
-
-
-
Constructor Detail
-
UdpProgressParser
public UdpProgressParser(ProgressListener listener) throws SocketException, URISyntaxException
- Throws:
SocketExceptionURISyntaxException
-
UdpProgressParser
public UdpProgressParser(ProgressListener listener, int port, InetAddress addr) throws SocketException, URISyntaxException
- Throws:
SocketExceptionURISyntaxException
-
-
Method Detail
-
stop
public void stop() throws IOException
- Specified by:
stopin interfaceProgressParser- Overrides:
stopin classAbstractSocketProgressParser- Throws:
IOException
-
getThreadName
protected String getThreadName()
- Specified by:
getThreadNamein classAbstractSocketProgressParser
-
getRunnable
protected Runnable getRunnable(CountDownLatch startSignal)
- Specified by:
getRunnablein classAbstractSocketProgressParser
-
getUri
public URI getUri()
Description copied from interface:ProgressParserThe URL to parse to FFmpeg to communicate with this parser- Returns:
- The URI to communicate with FFmpeg.
-
-