org.jaudiotagger.audio.mp4.atom
Class Mp4MetaBox

java.lang.Object
  extended by org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
      extended by org.jaudiotagger.audio.mp4.atom.Mp4MetaBox

public class Mp4MetaBox
extends AbstractMp4Box

This MP4 MetaBox is the parent of metadata, it usually contains four bytes of data that needs to be processed before we can examine the children. But I also have a file that caontsins meta (and no udta) that does not have this children data.


Field Summary
static int FLAGS_LENGTH
           
 
Fields inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
dataBuffer, header
 
Constructor Summary
Mp4MetaBox(Mp4BoxHeader header, java.nio.ByteBuffer dataBuffer)
           
 
Method Summary
static Mp4MetaBox createiTunesStyleMetaBox(int childrenSize)
          Create an iTunes style Meta box
 void processData()
           
 
Methods inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
getData, getHeader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FLAGS_LENGTH

public static final int FLAGS_LENGTH
See Also:
Constant Field Values
Constructor Detail

Mp4MetaBox

public Mp4MetaBox(Mp4BoxHeader header,
                  java.nio.ByteBuffer dataBuffer)
Parameters:
header - header info
dataBuffer - data of box (doesnt include header data)
Method Detail

processData

public void processData()
                 throws CannotReadException
Throws:
CannotReadException

createiTunesStyleMetaBox

public static Mp4MetaBox createiTunesStyleMetaBox(int childrenSize)
Create an iTunes style Meta box

Useful when writing to mp4 that previously didn't contain an mp4 meta atom

Parameters:
childrenSize -
Returns: