Coverage Report - org.jaudiotagger.audio.mp4.Mp4AudioHeader
 
Classes in this File Line Coverage Branch Coverage Complexity
Mp4AudioHeader
90%
9/10
N/A
1
 
 1  
 package org.jaudiotagger.audio.mp4;
 2  
 
 3  
 import org.jaudiotagger.audio.generic.GenericAudioHeader;
 4  
 import org.jaudiotagger.audio.mp4.atom.Mp4EsdsBox;
 5  
 
 6  
 /**
 7  
  * Store some additional attributes not available for all audio types
 8  
  */
 9  117
 public class Mp4AudioHeader extends GenericAudioHeader
 10  
 {
 11  
     /**
 12  
      * The key for the kind field<br>
 13  
      *
 14  
      * @see #content
 15  
      */
 16  
     public final static String FIELD_KIND = "KIND";
 17  
 
 18  
     /**
 19  
      * The key for the profile<br>
 20  
      *
 21  
      * @see #content
 22  
      */
 23  
     public final static String FIELD_PROFILE = "PROFILE";
 24  
 
 25  
 
 26  
     /**
 27  
      * The key for the ftyp brand<br>
 28  
      *
 29  
      * @see #content
 30  
      */
 31  
     public final static String FIELD_BRAND = "BRAND";
 32  
 
 33  
     public void setKind(Mp4EsdsBox.Kind kind)
 34  
     {
 35  109
         content.put(FIELD_KIND, kind);
 36  109
     }
 37  
 
 38  
     /**
 39  
      * @return kind
 40  
      */
 41  
     public Mp4EsdsBox.Kind getKind()
 42  
     {
 43  10
         return (Mp4EsdsBox.Kind) content.get(FIELD_KIND);
 44  
     }
 45  
 
 46  
     /**
 47  
      * The key for the profile
 48  
      *
 49  
      * @param profile
 50  
      */
 51  
     public void setProfile(Mp4EsdsBox.AudioProfile profile)
 52  
     {
 53  109
         content.put(FIELD_PROFILE, profile);
 54  109
     }
 55  
 
 56  
     /**
 57  
      * @return audio profile
 58  
      */
 59  
     public Mp4EsdsBox.AudioProfile getProfile()
 60  
     {
 61  10
         return (Mp4EsdsBox.AudioProfile) content.get(FIELD_PROFILE);
 62  
     }
 63  
 
 64  
     /**
 65  
      * @param brand
 66  
      */
 67  
     public void setBrand(String brand)
 68  
     {
 69  117
         content.put(FIELD_BRAND, brand);
 70  117
     }
 71  
 
 72  
 
 73  
     /**
 74  
      * @return brand
 75  
      */
 76  
     public String getBrand()
 77  
     {
 78  0
         return (String) content.get(FIELD_BRAND);
 79  
     }
 80  
 
 81  
 
 82  
 }