Package com.wowza.wms.dvr
Class DvrManifestEntryRangeGroup
- Object
-
- com.wowza.wms.dvr.DvrManifestEntryRangeGroup
-
public class DvrManifestEntryRangeGroup extends Object
A group of Manifest Ranges. The group may contain ranges of different types.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<DvrManifestEntryRange>
ranges
-
Constructor Summary
Constructors Constructor Description DvrManifestEntryRangeGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addRange(DvrManifestEntryRange range)
Add an index range to the group.void
deserialize(byte[] data)
Deserialize.boolean
isEmpty()
Determine if group of ranges is emptyboolean
isInRange(int type, int index)
Determine if index of given type is contained in the group of ranges.byte[]
serialize()
Serialize range groupString
toString()
-
-
-
Field Detail
-
ranges
public java.util.List<DvrManifestEntryRange> ranges
-
-
Method Detail
-
addRange
public void addRange(DvrManifestEntryRange range)
Add an index range to the group.- Parameters:
range
-
-
isInRange
public boolean isInRange(int type, int index)
Determine if index of given type is contained in the group of ranges.- Parameters:
type
- range typeindex
- index in question- Returns:
- true iof in range.
-
isEmpty
public boolean isEmpty()
Determine if group of ranges is empty- Returns:
- true if empty
-
serialize
public byte[] serialize()
Serialize range group- Returns:
- bytes representing range group
-
deserialize
public void deserialize(byte[] data)
Deserialize. Called after no-op constructor.- Parameters:
data
- buffer to deserialize.
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-