Class FileCallbackURLProtocolHandler
java.lang.Object
net.sf.ffmpeg_java.custom_protocol.FileCallbackURLProtocolHandler
- All Implemented Interfaces:
CallbackURLProtocolHandler
Implements CallbackURLProtocolHandler by using standard Java file I/O.
- Author:
- Ken Larson
-
Field Summary
FieldsFields inherited from interface net.sf.ffmpeg_java.custom_protocol.CallbackURLProtocolHandler
SEEK_CUR, SEEK_END, SEEK_SET -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintopen(AVFormatLibrary.URLContext h, String filename, int flags) Flags may be a combination of: AVFormatLibrary.URL_RDONLY, AVFormatLibrary.URL_WRONLY, AVFormatLibrary.URL_RDWR.intread(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size) longseek(AVFormatLibrary.URLContext h, long pos, int whence) Implementations need to be very careful about returning -1.intwrite(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size)
-
Field Details
-
TRACE
public static final boolean TRACE- See Also:
-
-
Constructor Details
-
FileCallbackURLProtocolHandler
-
-
Method Details
-
open
Description copied from interface:CallbackURLProtocolHandlerFlags may be a combination of: AVFormatLibrary.URL_RDONLY, AVFormatLibrary.URL_WRONLY, AVFormatLibrary.URL_RDWR.- Specified by:
openin interfaceCallbackURLProtocolHandler
-
read
- Specified by:
readin interfaceCallbackURLProtocolHandler
-
write
- Specified by:
writein interfaceCallbackURLProtocolHandler
-
seek
Description copied from interface:CallbackURLProtocolHandlerImplementations need to be very careful about returning -1. Basically, they should support full seek capability, or not at all, because much code in ffmpeg never checks the return value of a seek.- Specified by:
seekin interfaceCallbackURLProtocolHandler
-
close
- Specified by:
closein interfaceCallbackURLProtocolHandler
-