public class RandomIndexItemImpl extends Object implements XMLSerializable, Cloneable, Serializable, Comparable<RandomIndexItem>, RandomIndexItem, MXFConstants
| Modifier and Type | Field and Description |
|---|---|
static String |
BODYSID_TAG |
static String |
BYTEOFFSET_TAG |
static String |
RANDOMINDEXITEM_TAG |
InstanceTag, InstanceUID, KLVFill, KLVFillOld, RP210_NAMESPACE, RP210_PREFIX| Constructor and Description |
|---|
RandomIndexItemImpl(int bodySID,
long byteOffset) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendXMLChildren(Node parent)
Append extra child elements to the given parent node to serialize the value of an object
to an XML fragment.
|
RandomIndexItem |
clone()
Create a cloned copy of this random index item.
|
int |
compareTo(RandomIndexItem o)
Compares this item to another random index item by byte offset.
|
boolean |
equals(Object o) |
int |
getBodySID()
Create a cloned copy of this RandomIndexPackItemImpl.
|
long |
getByteOffset()
Create a cloned copy of this RandomIndexPackItemImpl.
|
String |
getComment()
Include a comment when serializing a value to XML.
|
int |
hashCode() |
void |
setBodySID(int bodySID)
Create a cloned copy of this RandomIndexPackItemImpl.
|
void |
setByteOffset(long byteOffset)
Create a cloned copy of this RandomIndexPackItemImpl.
|
String |
toString() |
public static final String RANDOMINDEXITEM_TAG
public static final String BODYSID_TAG
public static final String BYTEOFFSET_TAG
public RandomIndexItemImpl(@UInt32 int bodySID, @UInt64 long byteOffset) throws IllegalArgumentException
IllegalArgumentException@UInt32 public int getBodySID()
Create a cloned copy of this RandomIndexPackItemImpl.
getBodySID in interface RandomIndexItemPartitionPack.getBodySID()public void setBodySID(@UInt32 int bodySID) throws IllegalArgumentException
Create a cloned copy of this RandomIndexPackItemImpl.
setBodySID in interface RandomIndexItembodySID - Body stream identifier within the indexed partition.IllegalArgumentException - Cannot set the body stream identifier
to a negative value.PartitionPack.setBodySID(int)@UInt64 public long getByteOffset()
Create a cloned copy of this RandomIndexPackItemImpl.
getByteOffset in interface RandomIndexItemPartitionPack.getThisPartition()public void setByteOffset(@UInt64 long byteOffset) throws IllegalArgumentException
Create a cloned copy of this RandomIndexPackItemImpl.
setByteOffset in interface RandomIndexItembyteOffset - Byte offset of the indexed partition.IllegalArgumentException - Cannot set the byte offset to a
negative value.PartitionPack.setThisPartition(long)public void appendXMLChildren(Node parent)
XMLSerializableAppend extra child elements to the given parent node to serialize the value of an object
to an XML fragment. Methods of the XMLBuilder class are provided to help with this
process.
appendXMLChildren in interface XMLSerializableparent - XML parent element to append child nodes to.public String getComment()
XMLSerializableInclude a comment when serializing a value to XML. The comment will be inserted as the first child node of the element representing the class.
getComment in interface XMLSerializablepublic int compareTo(RandomIndexItem o)
RandomIndexItemCompares this item to another random index item by byte offset. This method returns:
-1 if this item indexes a partition before the given item;0 if this item is at the same position as the given item;1 if this item indexes a partition after the given item.compareTo in interface Comparable<RandomIndexItem>compareTo in interface RandomIndexItempublic RandomIndexItem clone()
RandomIndexItemCreate a cloned copy of this random index item.
clone in interface RandomIndexItemclone in class Object(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.