Coverage Report - org.jaudiotagger.audio.mp4.Mp4NotMetaFieldKey
 
Classes in this File Line Coverage Branch Coverage Complexity
Mp4NotMetaFieldKey
96%
29/30
N/A
1
 
 1  
 package org.jaudiotagger.audio.mp4;
 2  
 
 3  
 /**
 4  
  * This a list of mp4boxes identifiers, that are not part of the metadata info.
 5  
  * <p/>
 6  
  * <p>These are of limited interest to JAudiotagger but are required when reading audio info
 7  
  * or when writing modifications to the file when the location of audio has shifted.
 8  
  */
 9  4
 public enum Mp4NotMetaFieldKey
 10  
 {
 11  4
     FTYP("ftyp", "File type Identification"),
 12  4
     MOOV("moov", "Top level Presentation"),
 13  4
     MVHD("mvhd", "Movie Header"),
 14  4
     UDTA("udta", "User Data"),
 15  4
     META("meta", "MetaInformation"),
 16  4
     ILST("ilst", "MetaInformation Optional"),
 17  4
     MDAT("mdat", "Audio Data"),
 18  4
     MDIA("mdia", "Media"),
 19  4
     MDHD("mdhd", "Media Header"),
 20  4
     TKHD("tkhd", "Track Header"),
 21  4
     FREE("free", "Padding"),
 22  4
     TRAK("trak", "Track"),
 23  4
     SMHD("smhd", "Sound Media Header"),
 24  4
     NMHD("nmhd", "Media Stream Header"),
 25  4
     STBL("stbl", "Sample Table"),
 26  4
     STSD("stsd", "Sample Description"),
 27  4
     MP4A("mp4a", "AAC Audio"),
 28  4
     ESDS("esds", "Track codec specific information"),
 29  4
     MINF("minf", "Media Information"),
 30  4
     STCO("stco", "Offsets into Audio Data"),
 31  4
     DRMS("drms", "DRM protected File"),
 32  4
     ALAC("alac", "Apple Lossless File"),
 33  4
     HDLR("hdlr", "Metadata Handler");
 34  
     private String fieldName;
 35  
     private String description;
 36  
 
 37  
     Mp4NotMetaFieldKey(String fieldName, String description)
 38  92
     {
 39  92
         this.fieldName = fieldName;
 40  92
         this.description = description;
 41  
 
 42  92
     }
 43  
 
 44  
     /**
 45  
      * This is the value of the fieldname that is actually used to write mp4
 46  
      *
 47  
      * @return
 48  
      */
 49  
     public String getFieldName()
 50  
     {
 51  528168
         return fieldName;
 52  
     }
 53  
 
 54  
     /**
 55  
      * @return description, human redable description of the atom
 56  
      */
 57  
     public String getDescription()
 58  
     {
 59  0
         return description;
 60  
     }
 61  
 }