Coverage Report - org.jaudiotagger.audio.mp4.Mp4NotMetaFieldKey
 
Classes in this File Line Coverage Branch Coverage Complexity
Mp4NotMetaFieldKey
97%
29/30
N/A
0
 
 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  17
 public enum Mp4NotMetaFieldKey
 10  
 {
 11  17
     FTYP("ftyp", "File type Identification"),
 12  17
     MOOV("moov", "Top level Presentation"),
 13  17
     MVHD("mvhd", "Movie Header"),
 14  17
     UDTA("udta", "User Data"),
 15  17
     META("meta", "MetaInformation"),
 16  17
     ILST("ilst", "MetaInformation Optional"),
 17  17
     MDAT("mdat", "Audio Data"),
 18  17
     MDIA("mdia", "Media"),
 19  17
     MDHD("mdhd", "Media Header"),
 20  17
     TKHD("tkhd", "Track Header"),
 21  17
     FREE("free", "Padding"),
 22  17
     TRAK("trak", "Track"),
 23  17
     SMHD("smhd", "Sound Media Header"),
 24  17
     NMHD("nmhd", "Media Stream Header"),
 25  17
     STBL("stbl", "Sample Table"),
 26  17
     STSD("stsd", "Sample Description"),
 27  17
     MP4A("mp4a", "AAC Audio"),
 28  17
     ESDS("esds", "Track codec specific information"),
 29  17
     MINF("minf", "Media Information"),
 30  17
     STCO("stco", "Offsets into Audio Data"),
 31  17
     DRMS("drms", "DRM protected File"),
 32  17
     ALAC("alac", "Apple Lossless File"),
 33  17
     HDLR("hdlr", "Metadata Handler");
 34  
     private String fieldName;
 35  
     private String description;
 36  
 
 37  
     Mp4NotMetaFieldKey(String fieldName, String description)
 38  391
     {
 39  391
         this.fieldName = fieldName;
 40  391
         this.description = description;
 41  
 
 42  391
     }
 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  145875
         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  
 }