Package com.wowza.wms.mediacache.model
Interface IMediaCacheReader
public interface IMediaCacheReader
IMediaCacheReader
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close the readerlongGet the file pointer for this readerGet the MediaCache item associated with this readerGet the opaque objectlongGet the last modified timelonglength()Get the lengthvoidopen()Open the readerintread(byte[] buffer, int offset, int len) Read bytes for this readervoidseek(long pos) Seek to the position providedvoidsetMediaCacheItem(IMediaCacheItem mediaCacheItem) Set the MediaCache item associated with this readervoidsetOpaqueObject(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-
-