org.jaudiotagger.tag.mp4.field
Class Mp4DiscNoField

java.lang.Object
  extended by org.jaudiotagger.tag.mp4.Mp4TagField
      extended by org.jaudiotagger.tag.mp4.field.Mp4TagTextField
          extended by org.jaudiotagger.tag.mp4.field.Mp4TagTextNumberField
              extended by org.jaudiotagger.tag.mp4.field.Mp4DiscNoField
All Implemented Interfaces:
TagField, TagTextField

public class Mp4DiscNoField
extends Mp4TagTextNumberField

Represents the Disc No field

For some reason uses an array of three numbers, but only the last two are of use for display purposes


Field Summary
 
Fields inherited from class org.jaudiotagger.tag.mp4.field.Mp4TagTextNumberField
NUMBER_LENGTH
 
Fields inherited from class org.jaudiotagger.tag.mp4.Mp4TagField
logger
 
Constructor Summary
Mp4DiscNoField(int discNo)
          Create new Disc no Field with only discNo
Mp4DiscNoField(int discNo, int total)
          Create new Disc No Field with disc No and total tracks
Mp4DiscNoField(java.lang.String discValue)
          Create new Track Field parsing the String for the trackno/total
Mp4DiscNoField(java.lang.String id, java.nio.ByteBuffer data)
           
 
Method Summary
 java.lang.Short getDiscNo()
           
 java.lang.Short getDiscTotal()
           
 
Methods inherited from class org.jaudiotagger.tag.mp4.field.Mp4TagTextNumberField
copyContent, getFieldType, getNumbers
 
Methods inherited from class org.jaudiotagger.tag.mp4.field.Mp4TagTextField
getContent, getEncoding, isBinary, isEmpty, setContent, setEncoding, toString
 
Methods inherited from class org.jaudiotagger.tag.mp4.Mp4TagField
getId, getRawContent, getRawContentDataOnly, isBinary, isCommon
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jaudiotagger.tag.TagField
getId, getRawContent, isBinary, isCommon
 

Constructor Detail

Mp4DiscNoField

public Mp4DiscNoField(java.lang.String discValue)
               throws FieldDataInvalidException
Create new Track Field parsing the String for the trackno/total

Parameters:
discValue -
Throws:
FieldDataInvalidException

Mp4DiscNoField

public Mp4DiscNoField(int discNo)
Create new Disc no Field with only discNo

Parameters:
discNo -

Mp4DiscNoField

public Mp4DiscNoField(int discNo,
                      int total)
Create new Disc No Field with disc No and total tracks

Parameters:
discNo -
total -

Mp4DiscNoField

public Mp4DiscNoField(java.lang.String id,
                      java.nio.ByteBuffer data)
               throws java.io.UnsupportedEncodingException
Throws:
java.io.UnsupportedEncodingException
Method Detail

getDiscNo

public java.lang.Short getDiscNo()
Returns:

getDiscTotal

public java.lang.Short getDiscTotal()
Returns: