Package com.wowza.wms.dvr
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 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 typeboolean
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()
-
-
-
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 classObject
-
-