Class BaseMediaChunkIterator

    • Constructor Detail

      • BaseMediaChunkIterator

        public BaseMediaChunkIterator​(long fromIndex,
                                      long toIndex)
        Creates base iterator.
        fromIndex - The first available index.
        toIndex - The last available index.
    • Method Detail

      • isEnded

        public boolean isEnded()
        Description copied from interface: MediaChunkIterator
        Returns whether the iteration has reached the end of the available data.
        Specified by:
        isEnded in interface MediaChunkIterator
      • next

        public boolean next()
        Description copied from interface: MediaChunkIterator
        Moves the iterator to the next media chunk.

        Check the return value or MediaChunkIterator.isEnded() to determine whether the iterator reached the end of the available data.

        Specified by:
        next in interface MediaChunkIterator
        Whether the iterator points to a media chunk with available data.
      • checkInBounds

        protected final void checkInBounds()
        Verifies that the iterator points to a valid element.
        NoSuchElementException - If the iterator does not point to a valid element.
      • getCurrentIndex

        protected final long getCurrentIndex()
        Returns the current index this iterator is pointing to.