public class IndexTableImpl extends Object implements IndexTable, Cloneable, Padded
| Modifier and Type | Field and Description |
|---|---|
static DeltaEntry[] |
singleElementDelta |
static Rational |
zeroProportion |
indexPrimer| Constructor and Description |
|---|
IndexTableImpl() |
| Modifier and Type | Method and Description |
|---|---|
IndexTable |
clone()
Create a cloned copy of this index table.
|
static IndexTable |
createFromBuffer(ByteBuffer buffer) |
int |
getIndexSID()
Returns the index stream identifier for this index table within its
MXF file.
|
long |
getPaddingFillSize()
Returns the number of padding bytes following a significant entry in a partition,
such as a partition pack or index table.
|
void |
setPaddingFillSize(long paddingFillSize)
Set the amount of padding to include after each significant entry in the partition,
allowing space for the metadata to expand over time.
|
long |
streamOffset(long position,
int subStream)
Calculate the byte offset in the indexed stream of the frame at the
given position.
|
String |
toString() |
public static final Rational zeroProportion
public static final DeltaEntry[] singleElementDelta
@UInt32 public int getIndexSID()
IndexTableReturns the index stream identifier for this index table within its MXF file.
getIndexSID in interface IndexTablepublic IndexTable clone()
IndexTableCreate a cloned copy of this index table.
clone in interface IndexTableclone in class Objectpublic static final IndexTable createFromBuffer(ByteBuffer buffer) throws NullPointerException, BufferUnderflowException
public long getPaddingFillSize()
PaddedReturns the number of padding bytes following a significant entry in a partition, such as a partition pack or index table.
getPaddingFillSize in interface Paddedpublic void setPaddingFillSize(long paddingFillSize)
throws IllegalArgumentException
PaddedSet the amount of padding to include after each significant entry in the partition, allowing space for the metadata to expand over time.
setPaddingFillSize in interface PaddedpaddingFillSize - Size of padding to include after the partition.IllegalArgumentException - Cannot set the padding size to a negative value.Partition.setPartitionPackPadding(long)public long streamOffset(@PositionType long position, int subStream) throws IllegalArgumentException
IndexTableCalculate the byte offset in the indexed stream of the frame at the given position.
streamOffset in interface IndexTableposition - Edit unit number counted from the start of body.subStream - Sub-stream number to calculate the offset for.IllegalArgumentException(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.