public class FileCallbackURLProtocolHandler extends java.lang.Object implements CallbackURLProtocolHandler
Modifier and Type | Field and Description |
---|---|
static boolean |
TRACE |
SEEK_CUR, SEEK_END, SEEK_SET
Constructor and Description |
---|
FileCallbackURLProtocolHandler(java.io.File file) |
Modifier and Type | Method and Description |
---|---|
int |
close(AVFormatLibrary.URLContext h) |
int |
open(AVFormatLibrary.URLContext h,
java.lang.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) |
public static final boolean TRACE
public FileCallbackURLProtocolHandler(java.io.File file)
public int open(AVFormatLibrary.URLContext h, java.lang.String filename, int flags)
CallbackURLProtocolHandler
open
in interface CallbackURLProtocolHandler
public int read(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size)
read
in interface CallbackURLProtocolHandler
public int write(AVFormatLibrary.URLContext h, com.sun.jna.Pointer buf, int size)
write
in interface CallbackURLProtocolHandler
public long seek(AVFormatLibrary.URLContext h, long pos, int whence)
CallbackURLProtocolHandler
seek
in interface CallbackURLProtocolHandler
public int close(AVFormatLibrary.URLContext h)
close
in interface CallbackURLProtocolHandler