@Immutable
public static final class KLVPacket.Header
extends java.lang.Object
Constructor and Description |
---|
Header(ByteProvider byteProvider,
long byteOffset)
Instantiates a new Header.
|
Modifier and Type | Method and Description |
---|---|
boolean |
categoryDesignatorIsDictionaries()
Checks if the category designator in the key of this KLV packet is set to the value corresponding to
dictionaries as defined in st336:2007
|
boolean |
categoryDesignatorIsGroups()
Checks if the category designator in the key of this KLV packet is set to the value corresponding to
groups as defined in st336:2007
|
boolean |
categoryDesignatorIsLabels()
Checks if the category designator in the key corresponds to labels
|
boolean |
categoryDesignatorIsWrappersAndContainers()
Checks if the category designator in the key of this KLV packet is set to the value corresponding to
wrappers and containers as defined in st336:2007
|
long |
getByteOffset()
Gets the byteOffset in the underlying resource.
|
byte[] |
getKey()
Getter for the key of the KLV packet
|
long |
getKLSize()
Getter for the size of the Key and Length fields of the KLV packet
|
long |
getLSize()
Getter for the size of the length field of the KLV packet
|
java.lang.Integer |
getRegistryDesignator()
Gets the RegistryDesignator value in the key
|
java.lang.Integer |
getSetOrPackKindKey()
Gets the Set/Pack kind
|
long |
getVSize()
Getter for the value field of the KLV packet
|
java.lang.String |
toString()
A method that returns a string representation of a KLV packet header object
|
public Header(ByteProvider byteProvider, long byteOffset) throws java.io.IOException
byteProvider
- the mxf byte providerbyteOffset
- corresponding to the MXF KLV headerjava.io.IOException
- - any I/O related error will be exposed through an IOExceptionpublic byte[] getKey()
public long getVSize()
public long getLSize()
public long getByteOffset()
public long getKLSize()
public boolean categoryDesignatorIsDictionaries()
public boolean categoryDesignatorIsGroups()
public boolean categoryDesignatorIsWrappersAndContainers()
public java.lang.Integer getSetOrPackKindKey()
public java.lang.Integer getRegistryDesignator()
public boolean categoryDesignatorIsLabels()
public java.lang.String toString()
toString
in class java.lang.Object