Package com.avpkit.core.io
Class FileProtocolHandlerFactory
- java.lang.Object
-
- com.avpkit.core.io.FileProtocolHandlerFactory
-
- All Implemented Interfaces:
IURLProtocolHandlerFactory
public class FileProtocolHandlerFactory extends java.lang.Object implements IURLProtocolHandlerFactory
Implementation ofIURLProtocolHandlerFactorythat demonstrates how you can have Java act just like FFMPEG's internal "file:" protocol. This just duplicates all the functionality in the default "file:" protocol that FFMPEG implemements, but demonstrates how you can have FFMPEG call back into Java.
-
-
Constructor Summary
Constructors Constructor Description FileProtocolHandlerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IURLProtocolHandlergetHandler(java.lang.String url, int flags)Called by FFMPEG in order to get a handler to use for a given file.
-
-
-
Constructor Detail
-
FileProtocolHandlerFactory
public FileProtocolHandlerFactory()
-
-
Method Detail
-
getHandler
public IURLProtocolHandler getHandler(java.lang.String url, int flags)
Description copied from interface:IURLProtocolHandlerFactoryCalled by FFMPEG in order to get a handler to use for a given file.- Specified by:
getHandlerin interfaceIURLProtocolHandlerFactory- Parameters:
url- The URL that FFMPEG is trying to open.flags- The flags that FFMPEG will pass toIURLProtocolHandler.open(String, int)- Returns:
- A
IURLProtocolHandlerto use, or null. If null, a file not found error will be passed back to FFMPEG.
-
-