Class DvrManifestEntryRange


  • public class DvrManifestEntryRange
    extends Object
    Class that compactly represents a range of indices of a certain manifest type.
    • Constructor Summary

      Constructors 
      Constructor Description
      DvrManifestEntryRange​(int type, long startIndex, long endIndex)
      Construct a range of a given type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void deserialize​(byte[] data)
      Deserialize.
      long getEndIndex()
      Get end index.
      com.wowza.wms.dvr.IndexRange getRange()
      Get index range.
      long getStartIndex()
      Get start index.
      int getType()
      Get range type
      boolean isEmpty()  
      boolean isInRange​(int index)
      Is index in range.
      byte[] serialize()
      Serialize range.
      void setRange​(com.wowza.wms.dvr.IndexRange range)
      Set index range.
      String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DvrManifestEntryRange

        public DvrManifestEntryRange​(int type,
                                     long startIndex,
                                     long endIndex)
        Construct a range of a given type.
        Parameters:
        type - manifest type
        startIndex - initial member of range
        endIndex - final member of range
    • Method Detail

      • getType

        public int getType()
        Get range type
        Returns:
        type.
      • getRange

        public com.wowza.wms.dvr.IndexRange getRange()
        Get index range.
        Returns:
        index range
      • setRange

        public void setRange​(com.wowza.wms.dvr.IndexRange range)
        Set index range.
        Parameters:
        range - index range.
      • getStartIndex

        public long getStartIndex()
        Get start index.
        Returns:
        start index (or -1 if undefined)
      • getEndIndex

        public long getEndIndex()
        Get end index.
        Returns:
        end index (or -1 if undefined)
      • isInRange

        public boolean isInRange​(int index)
        Is index in range.
        Parameters:
        index - index in question.
        Returns:
        true if part of range.
      • serialize

        public byte[] serialize()
        Serialize range.
        Returns:
        out buffer containing serialized range.
      • deserialize

        public void deserialize​(byte[] data)
        Deserialize. Called after no-op constructor.
        Parameters:
        data - buffer to deserialize.
      • isEmpty

        public boolean isEmpty()
      • toString

        public String toString()
        Overrides:
        toString in class Object