Package com.avpkit.core.io
Class NullProtocolHandlerFactory
- java.lang.Object
-
- com.avpkit.core.io.NullProtocolHandlerFactory
-
- All Implemented Interfaces:
IURLProtocolHandlerFactory
public class NullProtocolHandlerFactory extends java.lang.Object implements IURLProtocolHandlerFactory
Returns a new NullProtocolHandler factory. By default AVPKit IO registers the Null Protocol InputOutputStreamHandler under the protocol name "corenull". Any URL can be opened.For example, "avpkitnull:a_url"
- Author:
- aclarke
-
-
Constructor Summary
Constructors Constructor Description NullProtocolHandlerFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IURLProtocolHandlergetHandler(java.lang.String aUrl, int aFlags)Called by FFMPEG in order to get a handler to use for a given file.
-
-
-
Constructor Detail
-
NullProtocolHandlerFactory
public NullProtocolHandlerFactory()
-
-
Method Detail
-
getHandler
public IURLProtocolHandler getHandler(java.lang.String aUrl, int aFlags)
Description copied from interface:IURLProtocolHandlerFactoryCalled by FFMPEG in order to get a handler to use for a given file.- Specified by:
getHandlerin interfaceIURLProtocolHandlerFactory- Parameters:
aUrl- The URL that FFMPEG is trying to open.aFlags- 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.
-
-