FileDocCategorySizeDatePackage
AbstractFullBox.javaAPI Docmp4parser 1.0-RC-171937Wed Dec 19 20:10:37 GMT 2012com.googlecode.mp4parser

AbstractFullBox

public abstract class AbstractFullBox extends AbstractBox implements com.coremedia.iso.boxes.FullBox
Base class for all ISO Full boxes.

Fields Summary
private int
version
private int
flags
Constructors Summary
protected AbstractFullBox(String type)

        super(type);
    
protected AbstractFullBox(String type, byte[] userType)

        super(type, userType);
    
Methods Summary
public intgetFlags()

        return flags;
    
public intgetVersion()

        return version;
    
protected final longparseVersionAndFlags(java.nio.ByteBuffer content)
Parses the version/flags header and returns the remaining box size.

param
content
return
number of bytes read

        version = IsoTypeReader.readUInt8(content);
        flags = IsoTypeReader.readUInt24(content);
        return 4;
    
public voidsetFlags(int flags)

        this.flags = flags;
    
public voidsetVersion(int version)

        this.version = version;
    
protected final voidwriteVersionAndFlags(java.nio.ByteBuffer bb)

        IsoTypeWriter.writeUInt8(bb, version);
        IsoTypeWriter.writeUInt24(bb, flags);