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 TypeMethodDescriptionint
int
open
(AVFormatLibrary.URLContext h, String filename, int flags) Flags may be a combination of: AVFormatLibrary.URL_RDONLY, AVFormatLibrary.URL_WRONLY, AVFormatLibrary.URL_RDWR.int
read
(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size) long
seek
(AVFormatLibrary.URLContext h, long pos, int whence) Implementations need to be very careful about returning -1.int
write
(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:CallbackURLProtocolHandler
Flags may be a combination of: AVFormatLibrary.URL_RDONLY, AVFormatLibrary.URL_WRONLY, AVFormatLibrary.URL_RDWR.- Specified by:
open
in interfaceCallbackURLProtocolHandler
-
read
- Specified by:
read
in interfaceCallbackURLProtocolHandler
-
write
- Specified by:
write
in interfaceCallbackURLProtocolHandler
-
seek
Description copied from interface:CallbackURLProtocolHandler
Implementations 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:
seek
in interfaceCallbackURLProtocolHandler
-
close
- Specified by:
close
in interfaceCallbackURLProtocolHandler
-