|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jaudiotagger.tag.mp4.Mp4TagField
org.jaudiotagger.tag.mp4.field.Mp4TagTextField
org.jaudiotagger.tag.mp4.field.Mp4TagTextNumberField
org.jaudiotagger.tag.mp4.field.Mp4TrackField
public class Mp4TrackField
Represents the Track No field
There are a number of reseved fields makeing matters more complicated Reserved:2 bytes Track Number:2 bytes No of Tracks:2 bytes (or zero if not known) PlayListTitleReserved: 1 byte playtitlenameReserved:0 bytes
| Field Summary | |
|---|---|
private static int |
NONE_END_VALUE_INDEX
|
private static int |
NONE_VALUE_INDEX
|
private static int |
TRACK_NO_INDEX
|
private static int |
TRACK_TOTAL_INDEX
|
| Fields inherited from class org.jaudiotagger.tag.mp4.field.Mp4TagTextNumberField |
|---|
NUMBER_LENGTH, numbers |
| Fields inherited from class org.jaudiotagger.tag.mp4.field.Mp4TagTextField |
|---|
content, dataSize |
| Fields inherited from class org.jaudiotagger.tag.mp4.Mp4TagField |
|---|
id, logger, parentHeader |
| 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 |
|
| Method Summary | |
|---|---|
protected void |
build(java.nio.ByteBuffer data)
Processes the data and sets the position of the data buffer to just after the end of this fields data ready for processing next field. |
java.lang.Short |
getTrackNo()
|
java.lang.Short |
getTrackTotal()
|
void |
setTrackNo(int trackNo)
Set Track No |
void |
setTrackTotal(int trackTotal)
Set total number of tracks |
| Methods inherited from class org.jaudiotagger.tag.mp4.field.Mp4TagTextNumberField |
|---|
copyContent, getDataBytes, 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, getIdBytes, getRawContent, getRawContentDataOnly, isBinary, isCommon |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jaudiotagger.tag.TagField |
|---|
getId, getRawContent, isBinary, isCommon |
| Field Detail |
|---|
private static final int NONE_VALUE_INDEX
private static final int TRACK_NO_INDEX
private static final int TRACK_TOTAL_INDEX
private static final int NONE_END_VALUE_INDEX
| Constructor Detail |
|---|
public Mp4TrackField(java.lang.String trackValue)
throws FieldDataInvalidException
trackValue -
FieldDataInvalidExceptionpublic Mp4TrackField(int trackNo)
trackNo -
public Mp4TrackField(int trackNo,
int total)
trackNo - total -
public Mp4TrackField(java.lang.String id,
java.nio.ByteBuffer data)
throws java.io.UnsupportedEncodingException
id - data -
java.io.UnsupportedEncodingException| Method Detail |
|---|
protected void build(java.nio.ByteBuffer data)
throws java.io.UnsupportedEncodingException
Mp4TagField
build in class Mp4TagTextNumberFieldjava.io.UnsupportedEncodingExceptionpublic java.lang.Short getTrackNo()
public java.lang.Short getTrackTotal()
public void setTrackNo(int trackNo)
trackNo - public void setTrackTotal(int trackTotal)
trackTotal -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||