@Immutable
public final class HeaderPartition
extends java.lang.Object
Constructor and Description |
---|
HeaderPartition(ByteProvider byteProvider,
long byteOffset,
long maxPartitionSize,
IMFErrorLogger imfErrorLogger)
Instantiates a new MXF Header partition.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<InterchangeObject> |
getAudioChannelLabelSubDescriptors()
Gets all the audio channel label sub descriptors associated with this HeaderPartition object
|
java.util.List<InterchangeObject> |
getContentStorageList()
Gets all of the ContentStorage objects corresponding to this HeaderPartition object
|
EssenceContainerData |
getEssenceContainerData(MXFUID MXFUID)
Gets the EssenceContainerData object associated with this HeaderPartition object corresponding to the specified UID.
|
java.util.List<InterchangeObject> |
getEssenceContainerDataList()
Gets all of the EssenceContainerData objects corresponding to this HeaderPartition object
|
java.util.List<InterchangeObject.InterchangeObjectBO> |
getEssenceDescriptors()
Gets all of the EssenceDescriptor objects corresponding to this HeaderPartition object that are referenced by
the Source Packages in this header partition
|
java.math.BigInteger |
getEssenceDuration()
Returns the largest duration of all the TimelineTracks within the first (in parsing order) Material Package
associated with this HeaderPartition object
|
MaterialPackage |
getMaterialPackage(MXFUID MXFUID)
Gets the MaterialPackage object associated with this HeaderPartition object corresponding to the specified UID.
|
java.util.List<InterchangeObject> |
getMaterialPackages()
Gets all of the MaterialPackage objects corresponding to this HeaderPartition object
|
PartitionPack |
getPartitionPack()
Gets the partition pack corresponding to this HeaderPartition
|
Preface |
getPreface()
Gets the Preface object corresponding to this HeaderPartition object
|
PrimerPack |
getPrimerPack()
Gets the PrimerPack object corresponding to this HeaderPartition object
|
Sequence |
getSequence(MXFUID MXFUID)
Gets the Sequence object associated with this HeaderPartition object corresponding to the specified UID.
|
java.util.List<InterchangeObject> |
getSoundFieldGroupLabelSubDescriptors()
Gets all the sound field group label sub descriptors associated with this HeaderPartition object
|
SourceClip |
getSourceClip(MXFUID MXFUID)
Gets the SourceClip object associated with this HeaderPartition object corresponding to the specified UID.
|
SourcePackage |
getSourcePackage(MXFUID MXFUID)
Gets the SourcePackage object associated with this HeaderPartition object corresponding to the specified UID.
|
java.util.List<InterchangeObject> |
getSourcePackages()
Gets all of the SourcePackage objects corresponding to this HeaderPartition object
|
java.util.List<InterchangeObject.InterchangeObjectBO> |
getStructuralMetadata(StructuralMetadataID structuralMetadataID)
Getter for a parsed InterchangeObject by ID
|
java.util.List<InterchangeObject.InterchangeObjectBO> |
getSubDescriptors()
Gets all of the SubDescriptor objects corresponding to this HeaderPartition object that are referenced by all
the source packages in this header partition
|
java.util.List<InterchangeObject.InterchangeObjectBO> |
getSubDescriptors(InterchangeObject.InterchangeObjectBO essenceDescriptor)
Gets the SubDescriptor objects corresponding to this HeaderPartition object that are referred by the specified
EssenceDescriptor
|
TimelineTrack |
getTimelineTrack(MXFUID MXFUID)
Gets the timeline track associated with this HeaderPartition object corresponding to the specified UID.
|
java.util.List<InterchangeObject> |
getWaveAudioEssenceDescriptors()
Gets all the wave audio essence descriptors associated with this HeaderPartition object
|
boolean |
hasAudioChannelLabelSubDescriptors()
Checks if this HeaderPartition object has any audio channel label sub descriptors
|
boolean |
hasCDCIPictureEssenceDescriptor()
Checks if this HeaderPartition object has a CDCI Picture Essence Descriptor
|
boolean |
hasPHDRMetaDataTrackSubDescriptor()
Checks if this HeaderPartition object has a PHDR Metadata track SubDescriptor
|
boolean |
hasRGBAPictureEssenceDescriptor()
Checks if this HeaderPartition object has a RGBA Picture Essence Descriptor
|
boolean |
hasSoundFieldGroupLabelSubDescriptor()
Checks if this HeaderPartition object has any sound field group label sub descriptors
|
boolean |
hasWaveAudioEssenceDescriptor()
Checks if this HeaderPartition object has a Wave Audio Essence Descriptor
|
java.lang.String |
toString()
A method that returns a string representation of a HeaderPartition object
|
public HeaderPartition(ByteProvider byteProvider, long byteOffset, long maxPartitionSize, IMFErrorLogger imfErrorLogger) throws java.io.IOException
byteProvider
- the input sequence of bytesbyteOffset
- the byte offset corresponding to the HeaderPartitionmaxPartitionSize
- the size of the header partitionimfErrorLogger
- an IMFErrorLogger dedicated to this header partitionjava.io.IOException
- - any I/O related error will be exposed through an IOException@Nullable public Preface getPreface()
@Nullable public PrimerPack getPrimerPack()
public java.util.List<InterchangeObject> getContentStorageList()
public java.util.List<InterchangeObject> getMaterialPackages()
public java.util.List<InterchangeObject> getEssenceContainerDataList()
public java.util.List<InterchangeObject> getSourcePackages()
public java.util.List<InterchangeObject.InterchangeObjectBO> getEssenceDescriptors()
public java.util.List<InterchangeObject.InterchangeObjectBO> getSubDescriptors()
public java.util.List<InterchangeObject.InterchangeObjectBO> getSubDescriptors(InterchangeObject.InterchangeObjectBO essenceDescriptor)
essenceDescriptor
- the essence descriptor whose referred subdescriptors are requestedpublic java.math.BigInteger getEssenceDuration()
public java.util.List<InterchangeObject.InterchangeObjectBO> getStructuralMetadata(StructuralMetadataID structuralMetadataID)
structuralMetadataID
- identifier for the structural metadata setpublic boolean hasWaveAudioEssenceDescriptor()
public boolean hasCDCIPictureEssenceDescriptor()
public boolean hasRGBAPictureEssenceDescriptor()
public boolean hasPHDRMetaDataTrackSubDescriptor()
public java.util.List<InterchangeObject> getWaveAudioEssenceDescriptors()
public boolean hasAudioChannelLabelSubDescriptors()
public java.util.List<InterchangeObject> getAudioChannelLabelSubDescriptors()
public boolean hasSoundFieldGroupLabelSubDescriptor()
public java.util.List<InterchangeObject> getSoundFieldGroupLabelSubDescriptors()
@Nullable public TimelineTrack getTimelineTrack(MXFUID MXFUID)
MXFUID
- corresponding to the Timeline Track@Nullable public Sequence getSequence(MXFUID MXFUID)
MXFUID
- corresponding to the Sequence@Nullable public SourceClip getSourceClip(MXFUID MXFUID)
MXFUID
- corresponding to the Source Clip@Nullable public MaterialPackage getMaterialPackage(MXFUID MXFUID)
MXFUID
- corresponding to the Material Package@Nullable public SourcePackage getSourcePackage(MXFUID MXFUID)
MXFUID
- corresponding to the Source Package@Nullable public EssenceContainerData getEssenceContainerData(MXFUID MXFUID)
MXFUID
- corresponding to the EssenceContainerDatapublic PartitionPack getPartitionPack()
public java.lang.String toString()
toString
in class java.lang.Object