@Immutable
public final class PartitionPack
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PartitionPack.PartitionPackType
An enum to represent the PartitionPackTypes which can be extended only by the PartitionPack class
|
Constructor and Description |
---|
PartitionPack(ByteProvider byteProvider)
Instantiates a new Partition pack.
|
PartitionPack(ByteProvider byteProvider,
java.lang.Long byteOffset,
boolean checkForSucceedingKLVFillItem)
Instantiates a new Partition pack.
|
PartitionPack(ByteProvider byteProvider,
java.lang.Long byteOffset,
boolean checkForSucceedingKLVFillItem,
IMFErrorLogger imfErrorLogger)
Instantiates a new Partition pack.
|
Modifier and Type | Method and Description |
---|---|
long |
getBodySID()
Getter for identifier of the Essence container segment found in this partition.
|
long |
getEssenceStreamSegmentStartStreamPosition()
Gets essence stream segment start stream position.
|
long |
getHeaderByteCount()
Getter for the header byte count that represents the count of bytes used for HeaderMetadata and Primer pack.
|
long |
getIndexByteCount()
Getter for count of bytes used for IndexTable segments.
|
long |
getIndexSID()
Getter for the index table segment identifier in this partition.
|
long |
getKLVPacketSize()
Getter for the KLV packet size.
|
int |
getNumberOfEssenceContainerULs()
Getter for the number of essence container ULs that are referred by this partition pack
|
byte[] |
getOperationalPattern()
Getter for the operational pattern that this MXF file complies to
|
long |
getPartitionByteOffset()
Getter for this partition's byte offset.
|
long |
getPartitionDataByteOffset()
Getter for the partition data byte offset.
|
PartitionPack.PartitionPackType |
getPartitionPackType()
Partition pack type of this pack.
|
long |
getSize()
Getter for the size field of a KLV packet.
|
long |
getVSize()
Getter for the size of the value field of a KLV packet.
|
boolean |
hasEssenceContainer()
Checks if this partition has essence container data.
|
boolean |
hasHeaderMetadata()
Checks if this partition pack has header metadata.
|
boolean |
hasIndexTableSegments()
Checks if this partition has index table segments.
|
boolean |
isBodyPartition()
Checks if this is a body partition.
|
boolean |
isFooterPartition()
Checks of this is a footer partition.
|
boolean |
isGenericStreamPartition()
Checks if this is a Generic Stream partition.
|
boolean |
isHeaderPartition()
Checks if this is a header partition.
|
boolean |
isValidFooterPartition()
Checks if this is a valid footer partition.
|
boolean |
isValidHeaderPartition()
Checks if this is a valid header partition.
|
boolean |
nextHeaderWasRead()
Checks if the next header was read.
|
boolean |
nextPacketIsKLVFillItem()
Checks if the next packet is a KLV fill item.
|
java.lang.String |
toString()
A method that returns a string representation of a PartitionPack object
|
public PartitionPack(ByteProvider byteProvider) throws java.io.IOException
byteProvider
- the mxf byte providerjava.io.IOException
- the iO exceptionpublic PartitionPack(ByteProvider byteProvider, java.lang.Long byteOffset, boolean checkForSucceedingKLVFillItem) throws java.io.IOException
byteProvider
- the mxf byte providerbyteOffset
- the byteOffset from the HeaderPartition of this partition packcheckForSucceedingKLVFillItem
- the check for succeeding kLV fill itemjava.io.IOException
- - any I/O related error will be exposed through an IOExceptionpublic PartitionPack(ByteProvider byteProvider, java.lang.Long byteOffset, boolean checkForSucceedingKLVFillItem, @Nullable IMFErrorLogger imfErrorLogger) throws java.io.IOException
byteProvider
- the mxf byte providerbyteOffset
- the byteOffset from the HeaderPartition of this partition packcheckForSucceedingKLVFillItem
- the check for succeeding kLV fill itemimfErrorLogger
- the imf error loggerjava.io.IOException
- - any I/O related error will be exposed through an IOExceptionpublic byte[] getOperationalPattern()
public int getNumberOfEssenceContainerULs()
public PartitionPack.PartitionPackType getPartitionPackType()
public boolean isHeaderPartition()
public boolean isValidHeaderPartition()
public boolean isBodyPartition()
public boolean isFooterPartition()
public boolean isValidFooterPartition()
public boolean isGenericStreamPartition()
public long getHeaderByteCount()
public boolean hasHeaderMetadata()
public long getIndexByteCount()
public long getIndexSID()
public boolean hasIndexTableSegments()
public long getBodySID()
public boolean hasEssenceContainer()
public long getKLVPacketSize()
public long getVSize()
public long getSize()
public long getPartitionByteOffset()
public long getEssenceStreamSegmentStartStreamPosition() throws MXFException
MXFException
- if the partition does not contain essencepublic boolean nextHeaderWasRead()
public boolean nextPacketIsKLVFillItem()
public long getPartitionDataByteOffset()
public java.lang.String toString()
toString
in class java.lang.Object