Interface IMediaIndexItem


  • public interface IMediaIndexItem

    IMediaIndexItem: generic interface to mediaIndex

    • Method Detail

      • getExtent

        int getExtent()
        Get the duration (milliseconds) of media index
        Returns:
        duration (milliseconds)
      • getChecksum

        String getChecksum()
        Get checksum for media index
        Returns:
        checksum
      • setChecksum

        void setChecksum​(String checksum)
        Set media index checksum
        Parameters:
        checksum -
      • setChecksum

        void setChecksum​(IRandomAccessReader file)
        Set media index checksum. Extract data from File spec
        Parameters:
        file -
      • clone

        IMediaIndexItem clone()
        Make a clone copy of media index
        Returns:
        shallow copy of media index
      • getLastAccessed

        long getLastAccessed()
        Get last time media index was accessed (milliseconds)
        Returns:
        time media index was accessed (milliseconds)
      • setLastAccessed

        void setLastAccessed​(long time)
        Set last time media index accessed (milliseconds)
        Parameters:
        time - media index was accessed (milliseconds)
      • isHitEnd

        boolean isHitEnd()
        Is media index complete
        Returns:
        true if media index is complete
      • touch

        void touch()
        Set last time accessed to current time