Coverage Report - org.jaudiotagger.tag.id3.framebody.FrameBodyXSOT
 
Classes in this File Line Coverage Branch Coverage Complexity
FrameBodyXSOT
56%
5/9
N/A
1
 
 1  
 package org.jaudiotagger.tag.id3.framebody;
 2  
 
 3  
 import org.jaudiotagger.tag.InvalidTagException;
 4  
 import org.jaudiotagger.tag.id3.ID3v23Frames;
 5  
 
 6  
 import java.nio.ByteBuffer;
 7  
 
 8  
 /**
 9  
  * Title Sort name, this is what MusicBrainz uses in ID3v23 because TSOT not supported.
 10  
  * <p/>
 11  
  * However iTunes uses TSOT even in ID3v23, so we have two possible options
 12  
  */
 13  
 public class FrameBodyXSOT extends AbstractFrameBodyTextInfo implements ID3v23FrameBody
 14  
 {
 15  
     /**
 16  
      * Creates a new FrameBodyTSOT datatype.
 17  
      */
 18  
     public FrameBodyXSOT()
 19  5
     {
 20  5
     }
 21  
 
 22  
     public FrameBodyXSOT(FrameBodyXSOT body)
 23  
     {
 24  0
         super(body);
 25  0
     }
 26  
 
 27  
     /**
 28  
      * Creates a new FrameBodyTSOT datatype.
 29  
      *
 30  
      * @param textEncoding
 31  
      * @param text
 32  
      */
 33  
     public FrameBodyXSOT(byte textEncoding, String text)
 34  
     {
 35  1
         super(textEncoding, text);
 36  1
     }
 37  
 
 38  
     /**
 39  
      * Creates a new FrameBodyTSOT datatype.
 40  
      *
 41  
      * @throws InvalidTagException
 42  
      */
 43  
     public FrameBodyXSOT(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
 44  
     {
 45  0
         super(byteBuffer, frameSize);
 46  0
     }
 47  
 
 48  
     /**
 49  
      * The ID3v2 frame identifier
 50  
      *
 51  
      * @return the ID3v2 frame identifier  for this frame type
 52  
      */
 53  
     public String getIdentifier()
 54  
     {
 55  4
         return ID3v23Frames.FRAME_ID_V3_TITLE_SORT_ORDER_MUSICBRAINZ;
 56  
     }
 57  
 }