Coverage Report - org.jaudiotagger.tag.id3.framebody.FrameBodyXSOT
 
Classes in this File Line Coverage Branch Coverage Complexity
FrameBodyXSOT
55%
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  20
     {
 20  20
     }
 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  4
         super(textEncoding, text);
 36  4
     }
 37  
 
 38  
     /**
 39  
      * Creates a new FrameBodyTSOT datatype.
 40  
      *
 41  
      * @param byteBuffer
 42  
      * @param frameSize
 43  
      * @throws InvalidTagException
 44  
      */
 45  
     public FrameBodyXSOT(ByteBuffer byteBuffer, int frameSize) throws InvalidTagException
 46  
     {
 47  0
         super(byteBuffer, frameSize);
 48  0
     }
 49  
 
 50  
     /**
 51  
      * The ID3v2 frame identifier
 52  
      *
 53  
      * @return the ID3v2 frame identifier  for this frame type
 54  
      */
 55  
     public String getIdentifier()
 56  
     {
 57  16
         return ID3v23Frames.FRAME_ID_V3_TITLE_SORT_ORDER_MUSICBRAINZ;
 58  
     }
 59  
 }