public final class MXFFieldPopulator
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.Boolean | 
getBooleanFromByte(byte[] byteArray)
Gets boolean from byte[] 
 | 
static java.lang.Byte | 
getByte(byte[] byteArray)
Gets a byte from a byte[] 
 | 
static java.util.List<MXFUID> | 
getDependentUIDs(InterchangeObject.InterchangeObjectBO interchangeObjectBO)
Gets a list of UIDs that the Metadata set depends on 
 | 
static java.nio.charset.Charset | 
getFieldCharset(java.lang.Object object,
               java.lang.String fieldName)
Gets the charset corresponding to a MXF metadata set field 
 | 
static int | 
getFieldSizeInBytes(java.lang.Object object,
                   java.lang.String fieldName)
Gets the size of a field in a MXF metadata set in bytes 
 | 
static java.lang.Float | 
getFloat(byte[] byteArray,
        java.nio.ByteOrder byteOrder)
A utility method for converting a byte[] to a float value 
 | 
static java.lang.Integer | 
getInt(byte[] byteArray,
      java.nio.ByteOrder byteOrder)
A utility method for converting a byte[] to an integer 
 | 
static java.lang.Long | 
getLong(byte[] byteArray,
       java.nio.ByteOrder byteOrder)
A utility method for converting a byte[] to a long value 
 | 
static java.lang.Short | 
getShort(byte[] byteArray,
        java.nio.ByteOrder byteOrder)
A utility method to convert a byte[] to a short 
 | 
static java.lang.String | 
getString(byte[] byteArray,
         java.nio.charset.Charset charset)
Getter for a string representing the byte[] 
 | 
static java.lang.Short | 
getUnsignedByteAsShort(byte[] byteArray)
Gets unsigned byte as short 
 | 
static java.lang.Long | 
getUnsignedIntAsLong(byte[] byteArray,
                    java.nio.ByteOrder byteOrder)
A utility method to convert an unsigned integer to a long 
 | 
static java.lang.Integer | 
getUnsignedShortAsInt(byte[] byteArray,
                     java.nio.ByteOrder byteOrder)
A utility method to convert a byte[] to an unsigned short 
 | 
static void | 
populateField(ByteProvider byteProvider,
             java.lang.Object object,
             java.lang.String fieldName)
An overloaded method that populates fields within a MXF metadata set 
 | 
static void | 
populateField(int fieldSize,
             ByteProvider byteProvider,
             java.lang.Object object,
             java.lang.String fieldName)
An overloaded method that populates fields within a MXF metadata set 
 | 
public static void populateField(ByteProvider byteProvider, java.lang.Object object, java.lang.String fieldName) throws java.io.IOException
byteProvider - the mxf byte providerobject - the objectfieldName - the field namejava.io.IOException - the iO exceptionpublic static void populateField(int fieldSize,
                                 ByteProvider byteProvider,
                                 java.lang.Object object,
                                 java.lang.String fieldName)
                          throws java.io.IOException
fieldSize - the field sizebyteProvider - the mxf byte providerobject - the objectfieldName - the field namejava.io.IOException - the iO exceptionpublic static java.lang.String getString(byte[] byteArray,
                                         java.nio.charset.Charset charset)
byteArray - the byte arraycharset - the charsetpublic static java.lang.Float getFloat(byte[] byteArray,
                                       java.nio.ByteOrder byteOrder)
byteArray - the byte arraybyteOrder - the byte orderpublic static java.lang.Long getLong(byte[] byteArray,
                                     java.nio.ByteOrder byteOrder)
byteArray - the byte arraybyteOrder - the byte orderpublic static java.lang.Long getUnsignedIntAsLong(byte[] byteArray,
                                                  java.nio.ByteOrder byteOrder)
byteArray - the byte arraybyteOrder - the byte orderpublic static java.lang.Integer getInt(byte[] byteArray,
                                       java.nio.ByteOrder byteOrder)
byteArray - the byte arraybyteOrder - the byte orderpublic static java.lang.Integer getUnsignedShortAsInt(byte[] byteArray,
                                                      java.nio.ByteOrder byteOrder)
byteArray - the byte arraybyteOrder - the byte orderpublic static java.lang.Short getShort(byte[] byteArray,
                                       java.nio.ByteOrder byteOrder)
byteArray - the byte arraybyteOrder - the byte orderpublic static java.lang.Short getUnsignedByteAsShort(byte[] byteArray)
byteArray - the byte arraypublic static java.lang.Byte getByte(byte[] byteArray)
byteArray - the byte arraypublic static java.lang.Boolean getBooleanFromByte(byte[] byteArray)
byteArray - the byte arraypublic static int getFieldSizeInBytes(java.lang.Object object,
                                      java.lang.String fieldName)
object - the objectfieldName - the field namepublic static java.nio.charset.Charset getFieldCharset(java.lang.Object object,
                                                       java.lang.String fieldName)
object - the objectfieldName - the field namepublic static java.util.List<MXFUID> getDependentUIDs(InterchangeObject.InterchangeObjectBO interchangeObjectBO)
interchangeObjectBO - the interchange object bO