public final class RegXMLLibHelper
extends java.lang.Object
| Constructor and Description |
|---|
RegXMLLibHelper(KLVPacket.Header primerPack,
ByteProvider primerPackByteProvider)
Constructor for the RegXMLLibHelper
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.DocumentFragment |
getDocumentFragment(com.sandflow.smpte.klv.Triplet triplet,
org.w3c.dom.Document document)
A utility method that provides an XML Document fragment representing an MXF KLV triplet
|
org.w3c.dom.DocumentFragment |
getEssenceDescriptorDocumentFragment(com.sandflow.smpte.klv.Triplet essenceDescriptorTriplet,
java.util.List<com.sandflow.smpte.klv.Triplet> subDescriptorTriplets,
org.w3c.dom.Document document)
A utility method that provides an XML Document fragment representing an Essence Descriptor in the MXF file
|
com.sandflow.smpte.klv.MemoryTriplet |
getTripletFromKLVHeader(KLVPacket.Header header,
ByteProvider byteProvider)
A utility method that provides an in-memory triplet representing an MXF KLV packet
|
public RegXMLLibHelper(KLVPacket.Header primerPack, ByteProvider primerPackByteProvider) throws java.io.IOException
primerPack - the Triplet representing the primer packprimerPackByteProvider - the data provider for the primer packjava.io.IOException - - any I/O related error will be exposed through an IOExceptionpublic org.w3c.dom.DocumentFragment getDocumentFragment(com.sandflow.smpte.klv.Triplet triplet,
org.w3c.dom.Document document)
throws MXFException
triplet - the KLV triplet that needs to be serialized to an XML document fragmentdocument - the XML document that the document fragment is associated withMXFException - if any error occurs while trying to create the document fragmentpublic org.w3c.dom.DocumentFragment getEssenceDescriptorDocumentFragment(com.sandflow.smpte.klv.Triplet essenceDescriptorTriplet,
java.util.List<com.sandflow.smpte.klv.Triplet> subDescriptorTriplets,
org.w3c.dom.Document document)
throws MXFException
essenceDescriptorTriplet - - a KLV triplet corresponding to an Essence Descriptordocument - an XML documentsubDescriptorTriplets - list of triplets corresponding to the subdescriptors referred by the essenceDescriptorMXFException - if any error occurs while trying to create the document fragmentpublic com.sandflow.smpte.klv.MemoryTriplet getTripletFromKLVHeader(KLVPacket.Header header, ByteProvider byteProvider) throws java.io.IOException
header - - the MXF KLV header corresponding to an MXF KLV packetbyteProvider - - data provider for the MXF KLV packetjava.io.IOException - - any I/O related error will be exposed through an IOException