FileDocCategorySizeDatePackage
OmaDrmAccessUnitFormatBox.javaAPI Docmp4parser 1.0-RC-172554Wed Dec 19 20:10:38 GMT 2012com.coremedia.iso.boxes

OmaDrmAccessUnitFormatBox

public final class OmaDrmAccessUnitFormatBox extends com.googlecode.mp4parser.AbstractFullBox
Describes the format of media access units in PDCF files.

Fields Summary
public static final String
TYPE
private boolean
selectiveEncryption
private byte
allBits
private int
keyIndicatorLength
private int
initVectorLength
Constructors Summary
public OmaDrmAccessUnitFormatBox()

        super("odaf");
    
Methods Summary
public void_parseDetails(java.nio.ByteBuffer content)

        parseVersionAndFlags(content);
        allBits = (byte) IsoTypeReader.readUInt8(content);
        selectiveEncryption = (allBits & 0x80) == 0x80;
        keyIndicatorLength = IsoTypeReader.readUInt8(content);
        initVectorLength = IsoTypeReader.readUInt8(content);
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);
        IsoTypeWriter.writeUInt8(byteBuffer, allBits);
        IsoTypeWriter.writeUInt8(byteBuffer, keyIndicatorLength);
        IsoTypeWriter.writeUInt8(byteBuffer, initVectorLength);
    
protected longgetContentSize()


       
        return 7;
    
public intgetInitVectorLength()

        return initVectorLength;
    
public intgetKeyIndicatorLength()

        return keyIndicatorLength;
    
public booleanisSelectiveEncryption()

        return selectiveEncryption;
    
public voidsetAllBits(byte allBits)

        this.allBits = allBits;
        selectiveEncryption = (allBits & 0x80) == 0x80;
    
public voidsetInitVectorLength(int initVectorLength)

        this.initVectorLength = initVectorLength;
    
public voidsetKeyIndicatorLength(int keyIndicatorLength)

        this.keyIndicatorLength = keyIndicatorLength;