org.jaudiotagger.audio.mp4.atom
Class Mp4HdlrBox

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

public class Mp4HdlrBox
extends AbstractMp4Box

HdlrBox ( Handler box),

Describes the type of metadata in the following ilst or minf atom


Nested Class Summary
static class Mp4HdlrBox.MediaDataType
           
 
Field Summary
static int HANDLER_LENGTH
           
static int HANDLER_POS
           
private  java.lang.String handlerType
           
static int ITUNES_META_HDLR_DAT_LENGTH
           
private  Mp4HdlrBox.MediaDataType mediaDataType
           
private static java.util.Map<java.lang.String,Mp4HdlrBox.MediaDataType> mediaDataTypeMap
           
private  java.lang.String name
           
static int NAME_LENGTH
           
static int OTHER_FLAG_LENGTH
           
private  int reserved
           
static int RESERVED_FLAG_LENGTH
           
static int RESERVED1_LENGTH
           
static int RESERVED1_POS
           
static int RESERVED2_LENGTH
           
static int RESERVED3_LENGTH
           
static int VERSION_FLAG_LENGTH
           
 
Fields inherited from class org.jaudiotagger.audio.mp4.atom.AbstractMp4Box
dataBuffer, header
 
Constructor Summary
Mp4HdlrBox(Mp4BoxHeader header, java.nio.ByteBuffer dataBuffer)
          DataBuffer must start from from the start of the body
 
Method Summary
static Mp4HdlrBox createiTunesStyleHdlrBox()
          Create an iTunes style Hdlr box for use within Meta box
 java.lang.String getHandlerType()
           
 Mp4HdlrBox.MediaDataType getMediaDataType()
           
 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

VERSION_FLAG_LENGTH

public static final int VERSION_FLAG_LENGTH
See Also:
Constant Field Values

OTHER_FLAG_LENGTH

public static final int OTHER_FLAG_LENGTH
See Also:
Constant Field Values

RESERVED_FLAG_LENGTH

public static final int RESERVED_FLAG_LENGTH
See Also:
Constant Field Values

HANDLER_LENGTH

public static final int HANDLER_LENGTH
See Also:
Constant Field Values

RESERVED1_LENGTH

public static final int RESERVED1_LENGTH
See Also:
Constant Field Values

RESERVED2_LENGTH

public static final int RESERVED2_LENGTH
See Also:
Constant Field Values

RESERVED3_LENGTH

public static final int RESERVED3_LENGTH
See Also:
Constant Field Values

NAME_LENGTH

public static final int NAME_LENGTH
See Also:
Constant Field Values

HANDLER_POS

public static final int HANDLER_POS
See Also:
Constant Field Values

RESERVED1_POS

public static final int RESERVED1_POS
See Also:
Constant Field Values

ITUNES_META_HDLR_DAT_LENGTH

public static final int ITUNES_META_HDLR_DAT_LENGTH
See Also:
Constant Field Values

reserved

private int reserved

handlerType

private java.lang.String handlerType

name

private java.lang.String name

mediaDataType

private Mp4HdlrBox.MediaDataType mediaDataType

mediaDataTypeMap

private static java.util.Map<java.lang.String,Mp4HdlrBox.MediaDataType> mediaDataTypeMap
Constructor Detail

Mp4HdlrBox

public Mp4HdlrBox(Mp4BoxHeader header,
                  java.nio.ByteBuffer dataBuffer)
DataBuffer must start from from the start of the body

Parameters:
header - header info
dataBuffer - data of box (doesnt include header data)
Method Detail

processData

public void processData()
                 throws CannotReadException
Throws:
CannotReadException

getHandlerType

public java.lang.String getHandlerType()

getMediaDataType

public Mp4HdlrBox.MediaDataType getMediaDataType()

toString

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

createiTunesStyleHdlrBox

public static Mp4HdlrBox createiTunesStyleHdlrBox()
Create an iTunes style Hdlr box for use within Meta box

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

Doesnt write the child data but uses it to se the header length, only sets the atoms immediate data

Returns: