FileDocCategorySizeDatePackage
UuidBasedProtectionSystemSpecificHeaderBox.javaAPI Docmp4parser 1.0-RC-173419Wed Dec 19 20:10:37 GMT 2012com.googlecode.mp4parser.boxes.piff

UuidBasedProtectionSystemSpecificHeaderBox

public class UuidBasedProtectionSystemSpecificHeaderBox extends com.googlecode.mp4parser.AbstractFullBox
aligned(8) class UuidBasedProtectionSystemSpecificHeaderBox extends FullBox(‚¨‹uuid‚¨", extended_type=0xd08a4f18-10f3-4a82-b6c8-32d8aba183d3, version=0, flags=0) { unsigned int(8)[16] SystemID; unsigned int(32) DataSize; unsigned int(8)[DataSize] Data; }

Fields Summary
public static byte[]
USER_TYPE
UUID
systemId
ProtectionSpecificHeader
protectionSpecificHeader
Constructors Summary
public UuidBasedProtectionSystemSpecificHeaderBox()


      
        super("uuid", USER_TYPE);
    
Methods Summary
protected void_parseDetails(java.nio.ByteBuffer content)

        parseVersionAndFlags(content);
        byte[] systemIdBytes = new byte[16];
        content.get(systemIdBytes);
        systemId = UUIDConverter.convert(systemIdBytes);
        int dataSize = l2i(IsoTypeReader.readUInt32(content));
        protectionSpecificHeader = ProtectionSpecificHeader.createFor(systemId, content);
    
protected voidgetContent(java.nio.ByteBuffer byteBuffer)

        writeVersionAndFlags(byteBuffer);
        IsoTypeWriter.writeUInt64(byteBuffer, systemId.getMostSignificantBits());
        IsoTypeWriter.writeUInt64(byteBuffer, systemId.getLeastSignificantBits());
        ByteBuffer data = protectionSpecificHeader.getData();
        data.rewind();
        IsoTypeWriter.writeUInt32(byteBuffer, data.limit());
        byteBuffer.put(data);
    
protected longgetContentSize()

        return 24 + protectionSpecificHeader.getData().limit();
    
public ProtectionSpecificHeadergetProtectionSpecificHeader()

        return protectionSpecificHeader;
    
public java.lang.StringgetProtectionSpecificHeaderString()

        return protectionSpecificHeader.toString();
    
public java.util.UUIDgetSystemId()

        return systemId;
    
public java.lang.StringgetSystemIdString()

        return systemId.toString();
    
public byte[]getUserType()

        return USER_TYPE;
    
public voidsetProtectionSpecificHeader(ProtectionSpecificHeader protectionSpecificHeader)

        this.protectionSpecificHeader = protectionSpecificHeader;
    
public voidsetSystemId(java.util.UUID systemId)

        this.systemId = systemId;
    
public java.lang.StringtoString()

        final StringBuilder sb = new StringBuilder();
        sb.append("UuidBasedProtectionSystemSpecificHeaderBox");
        sb.append("{systemId=").append(systemId.toString());
        sb.append(", dataSize=").append(protectionSpecificHeader.getData().limit());
        sb.append('}");
        return sb.toString();