Package com.wowza.wms.mediacache.model
Interface IMediaCacheReader
public interface IMediaCacheReader
IMediaCacheReader
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the readerlong
Get the file pointer for this readerGet the MediaCache item associated with this readerGet the opaque objectlong
Get the last modified timelong
length()
Get the lengthvoid
open()
Open the readerint
read
(byte[] buffer, int offset, int len) Read bytes for this readervoid
seek
(long pos) Seek to the position providedvoid
setMediaCacheItem
(IMediaCacheItem mediaCacheItem) Set the MediaCache item associated with this readervoid
setOpaqueObject
(Object object) Set the opaque object
-
Method Details
-
seek
void seek(long pos) Seek to the position provided- Parameters:
pos
-
-
getFilePointer
long getFilePointer()Get the file pointer for this reader- Returns:
- long
-
read
int read(byte[] buffer, int offset, int len) Read bytes for this reader- Parameters:
buffer
-offset
-len
-- Returns:
- int - number of bytes read
-
setMediaCacheItem
Set the MediaCache item associated with this reader- Parameters:
mediaCacheItem
-
-
getMediaCacheItem
IMediaCacheItem getMediaCacheItem()Get the MediaCache item associated with this reader- Returns:
- IMediaCacheItem
-
open
void open()Open the reader -
close
void close()Close the reader -
length
long length()Get the length- Returns:
- long
-
lastModified
long lastModified()Get the last modified time- Returns:
- long
-
getOpaqueObject
Object getOpaqueObject()Get the opaque object- Returns:
- Object
-
setOpaqueObject
Set the opaque object- Parameters:
object
-
-