org.jaudiotagger.tag.mp4.field
Class Mp4TrackField
java.lang.Object
org.jaudiotagger.tag.mp4.Mp4TagField
org.jaudiotagger.tag.mp4.field.Mp4TagTextField
org.jaudiotagger.tag.mp4.field.Mp4TagTextNumberField
org.jaudiotagger.tag.mp4.field.Mp4TrackField
- All Implemented Interfaces:
- TagField, TagTextField
public class Mp4TrackField
- extends Mp4TagTextNumberField
Represents the Track No field
For some reason uses an array of four numbers, but only the middle two are of use for display purposes
Constructor Summary |
Mp4TrackField(int trackNo)
Create new Track Field with only track No |
Mp4TrackField(int trackNo,
int total)
Create new Track Field with track No and total tracks |
Mp4TrackField(java.lang.String trackValue)
Create new Track Field parsing the String for the trackno/total |
Mp4TrackField(java.lang.String id,
java.nio.ByteBuffer data)
Construct from filedata |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Mp4TrackField
public Mp4TrackField(java.lang.String trackValue)
throws FieldDataInvalidException
- Create new Track Field parsing the String for the trackno/total
- Parameters:
trackValue
-
- Throws:
FieldDataInvalidException
Mp4TrackField
public Mp4TrackField(int trackNo)
- Create new Track Field with only track No
- Parameters:
trackNo
-
Mp4TrackField
public Mp4TrackField(int trackNo,
int total)
- Create new Track Field with track No and total tracks
- Parameters:
trackNo
- total
-
Mp4TrackField
public Mp4TrackField(java.lang.String id,
java.nio.ByteBuffer data)
throws java.io.UnsupportedEncodingException
- Construct from filedata
- Parameters:
id
- data
-
- Throws:
java.io.UnsupportedEncodingException
getTrackNo
public java.lang.Short getTrackNo()
- Returns:
getTrackTotal
public java.lang.Short getTrackTotal()
- Returns: