Interface IMediaCacheReader


  • public interface IMediaCacheReader
    IMediaCacheReader
    • 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 -