Package com.wowza.wms.dvr
Class DvrManifestEntryRange
Object
com.wowza.wms.dvr.DvrManifestEntryRange
Class that compactly represents a range of indices of a certain manifest type.
-
Constructor Summary
ConstructorsConstructorDescriptionDvrManifestEntryRange(int type, long startIndex, long endIndex) Construct a range of a given type. -
Method Summary
Modifier and TypeMethodDescriptionvoiddeserialize(byte[] data) Deserialize.longGet end index.com.wowza.wms.dvr.IndexRangegetRange()Get index range.longGet start index.intgetType()Get range typebooleanisEmpty()booleanisInRange(int index) Is index in range.byte[]Serialize range.voidsetRange(com.wowza.wms.dvr.IndexRange range) Set index range.toString()
-
Constructor Details
-
DvrManifestEntryRange
public DvrManifestEntryRange(int type, long startIndex, long endIndex) Construct a range of a given type.- Parameters:
type- manifest typestartIndex- initial member of rangeendIndex- 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
-