Package com.wowza.wms.mediacache.model
Interface IMediaCacheReader
-
public interface IMediaCacheReader
IMediaCacheReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close the readerlong
getFilePointer()
Get the file pointer for this readerIMediaCacheItem
getMediaCacheItem()
Get the MediaCache item associated with this readerObject
getOpaqueObject()
Get the opaque objectlong
lastModified()
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 Detail
-
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
void setMediaCacheItem(IMediaCacheItem mediaCacheItem)
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
void setOpaqueObject(Object object)
Set the opaque object- Parameters:
object
-
-
-