Class DvrManifestEntryRange

Object
com.wowza.wms.dvr.DvrManifestEntryRange

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

    • 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 Details

    • 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