org.jaudiotagger.audio.mp4.atom
Class Mp4FtypBox

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

public class Mp4FtypBox
extends AbstractMp4Box

Ftyp (File Type) is the first atom, can be used to help identify the mp4 container type


Nested Class Summary
static class Mp4FtypBox.Brand
          Major brand, helps identify whats contained in the file, used by major and compatible brands but this is not an exhaustive list, so for that reason we dont force the values read from the file to tie in with this enum.
 
Field Summary
private static int COMPATIBLE_BRAND_LENGTH
           
private  java.util.List<java.lang.String> compatibleBrands
           
private static int MAJOR_BRAND_LENGTH
           
private static int MAJOR_BRAND_POS
           
private static int MAJOR_BRAND_VERSION_LENGTH
           
private static int MAJOR_BRAND_VERSION_POS
           
private  java.lang.String majorBrand
           
private  int majorBrandVersion
           
 
Fields inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
dataBuffer, header
 
Constructor Summary
Mp4FtypBox(Mp4BoxHeader header, java.nio.ByteBuffer dataBuffer)
           
 
Method Summary
 java.util.List<java.lang.String> getCompatibleBrands()
           
 java.lang.String getMajorBrand()
           
 int getMajorBrandVersion()
           
 void processData()
           
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Field Detail

majorBrand

private java.lang.String majorBrand

majorBrandVersion

private int majorBrandVersion

compatibleBrands

private java.util.List<java.lang.String> compatibleBrands

MAJOR_BRAND_POS

private static final int MAJOR_BRAND_POS
See Also:
Constant Field Values

MAJOR_BRAND_LENGTH

private static final int MAJOR_BRAND_LENGTH
See Also:
Constant Field Values

MAJOR_BRAND_VERSION_POS

private static final int MAJOR_BRAND_VERSION_POS
See Also:
Constant Field Values

MAJOR_BRAND_VERSION_LENGTH

private static final int MAJOR_BRAND_VERSION_LENGTH
See Also:
Constant Field Values

COMPATIBLE_BRAND_LENGTH

private static final int COMPATIBLE_BRAND_LENGTH
See Also:
Constant Field Values
Constructor Detail

Mp4FtypBox

public Mp4FtypBox(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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getMajorBrand

public java.lang.String getMajorBrand()

getMajorBrandVersion

public int getMajorBrandVersion()

getCompatibleBrands

public java.util.List<java.lang.String> getCompatibleBrands()