Package com.wowza.wms.mediacache.model
Interface IMediaCacheReader
- 
 public interface IMediaCacheReaderIMediaCacheReader
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the readerlonggetFilePointer()Get the file pointer for this readerIMediaCacheItemgetMediaCacheItem()Get the MediaCache item associated with this readerObjectgetOpaqueObject()Get the opaque objectlonglastModified()Get 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 Detail- 
seekvoid seek(long pos) Seek to the position provided- Parameters:
- pos-
 
 - 
getFilePointerlong getFilePointer() Get the file pointer for this reader- Returns:
- long
 
 - 
readint read(byte[] buffer, int offset, int len)Read bytes for this reader- Parameters:
- buffer-
- offset-
- len-
- Returns:
- int - number of bytes read
 
 - 
setMediaCacheItemvoid setMediaCacheItem(IMediaCacheItem mediaCacheItem) Set the MediaCache item associated with this reader- Parameters:
- mediaCacheItem-
 
 - 
getMediaCacheItemIMediaCacheItem getMediaCacheItem() Get the MediaCache item associated with this reader- Returns:
- IMediaCacheItem
 
 - 
openvoid open() Open the reader
 - 
closevoid close() Close the reader
 - 
lengthlong length() Get the length- Returns:
- long
 
 - 
lastModifiedlong lastModified() Get the last modified time- Returns:
- long
 
 - 
getOpaqueObjectObject getOpaqueObject() Get the opaque object- Returns:
- Object
 
 - 
setOpaqueObjectvoid setOpaqueObject(Object object) Set the opaque object- Parameters:
- object-
 
 
- 
 
-