|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tffenterprises.music.tag.id3v2.Frame
com.tffenterprises.music.tag.id3v2.frame.BaseFrame
com.tffenterprises.music.tag.id3v2.frame.TextBasedFrame
com.tffenterprises.music.tag.id3v2.frame.TextFrame
com.tffenterprises.music.tag.id3v2.frame.ContentTypeFrame
public class ContentTypeFrame
This class is the ID3v2 TCON frame type, which attempts to represent the type of content of a given track. It fails, but at least
Field Summary | |
---|---|
static java.lang.String |
COVER_CODE
A standard string to designate a cover version |
private byte |
genre
The genre as a byte, ID3v1-style |
private boolean |
isACover
A boolean set if the track is (known to be) a cover version |
private boolean |
isARemix
A boolean set if the track is (known to be) a remix |
static java.lang.String |
MY_ID
The Frame ID for a YearFrame. |
static java.lang.String |
REMIX_CODE
A standard string to designate a remix |
Fields inherited from class com.tffenterprises.music.tag.id3v2.frame.TextBasedFrame |
---|
BOM_CHAR, BOM_CHAR_STRING, ENCODING_STRINGS, ISO_8859_1, NULL_BOM_STRING, NULL_CHAR, NULL_CHAR_STRING, UNICODE, UNICODE_BIG, UNICODE_LITTLE, UTF8 |
Constructor Summary | |
---|---|
ContentTypeFrame()
Constructs a new YearFrame with no data. |
|
ContentTypeFrame(FrameHeader header)
Constructs a new instance using the specified FrameHeader object. |
Method Summary | |
---|---|
java.lang.Object |
clone()
Returns a clone of this ID3v2 frame. |
boolean |
equals(java.lang.Object other)
Compares this ID3v2 frame with another object. |
byte |
getGenreAsByte()
|
boolean |
isContentCover()
|
boolean |
isContentRemix()
|
void |
setContentCover(boolean cover)
|
void |
setContentRemix(boolean remix)
|
void |
setGenreAsByte(byte newGenre)
|
void |
setText(java.lang.String genreString)
Sets the text contained in this frame. |
private void |
updateString()
|
Methods inherited from class com.tffenterprises.music.tag.id3v2.frame.TextFrame |
---|
getRawData, getText, isOfRepeatableType, setRawData, toString |
Methods inherited from class com.tffenterprises.music.tag.id3v2.frame.TextBasedFrame |
---|
getNullBytes, getTextEncoding, getTextEncoding, getTextEncoding, is8859String, read8859Characters, read8859String, readCharacters, readString, readUnicodeCharacters, readUnicodeString |
Methods inherited from class com.tffenterprises.music.tag.id3v2.frame.BaseFrame |
---|
getBytes, getChecksum, getFormatFlags, getFrameID, getHeader, getStatusFlags, hashCode, isChanged, setChanged, setFormatFlags, setStatusFlags, toByteArray, updateChecksum, writeTo |
Methods inherited from class com.tffenterprises.music.tag.id3v2.Frame |
---|
FromByteArray, FromByteArray, FromInputStream, GetFrameClassForID, getNewInstance, getNewInstance, getNewInstance, MinimumLength, RegisterFrameClass, UnregisterFrameClass |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MY_ID
public static final java.lang.String REMIX_CODE
public static final java.lang.String COVER_CODE
private byte genre
private boolean isACover
private boolean isARemix
Constructor Detail |
---|
ContentTypeFrame()
public ContentTypeFrame(FrameHeader header)
header
- The FrameHeader to be used for this frame.Method Detail |
---|
public java.lang.Object clone()
clone
in class TextFrame
public boolean equals(java.lang.Object other)
equals
in class TextFrame
other
- The other object.
public void setText(java.lang.String genreString)
TextFrame
setText
in class TextFrame
genreString
- The text.public byte getGenreAsByte()
public void setGenreAsByte(byte newGenre)
public boolean isContentRemix()
public void setContentRemix(boolean remix)
public boolean isContentCover()
public void setContentCover(boolean cover)
private void updateString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |