FileDocCategorySizeDatePackage
ID3FrameType.javaAPI DocMyID3 for Android16325Wed Oct 08 18:07:00 BST 2008org.cmc.music.common

ID3FrameType

public class ID3FrameType extends Object

Fields Summary
public final String
short_id
public final String
long_id
public final String
description
private final Number
frame_order
public static final Number
DEFAULT_FRAME_ORDER
public static final Number
TEXT_FRAME_ORDER
public static final ID3FrameType
GENRE_ID
public static final ID3FrameType
CONTENT_GROUP
public static final ID3FrameType
TITLE
public static final ID3FrameType
SUBTITLE
public static final ID3FrameType
ARTIST
public static final ID3FrameType
BAND
public static final ID3FrameType
CONDUCTOR
public static final ID3FrameType
MIXARTIST
public static final ID3FrameType
COMPOSER
public static final ID3FrameType
LYRICIST
public static final ID3FrameType
LANGUAGE
public static final ID3FrameType
CONTENTTYPE
public static final ID3FrameType
ALBUM
public static final ID3FrameType
TRACKNUM
public static final ID3FrameType
PARTINSET
public static final ID3FrameType
ISRC
public static final ID3FrameType
DATE
public static final ID3FrameType
YEAR
public static final ID3FrameType
TIME
public static final ID3FrameType
RECORDINGDATES
public static final ID3FrameType
RECORDINGTIME
public static final ID3FrameType
ORIGYEAR
public static final ID3FrameType
ORIGRELEASETIME
public static final ID3FrameType
BPM
public static final ID3FrameType
MEDIATYPE
public static final ID3FrameType
FILETYPE
public static final ID3FrameType
COPYRIGHT
public static final ID3FrameType
PUBLISHER
public static final ID3FrameType
ENCODEDBY
public static final ID3FrameType
ENCODERSETTINGS
public static final ID3FrameType
SONGLEN
public static final ID3FrameType
SIZE
public static final ID3FrameType
PLAYLISTDELAY
public static final ID3FrameType
INITIALKEY
public static final ID3FrameType
ORIGALBUM
public static final ID3FrameType
ORIGFILENAME
public static final ID3FrameType
ORIGARTIST
public static final ID3FrameType
ORIGLYRICIST
public static final ID3FrameType
FILEOWNER
public static final ID3FrameType
NETRADIOSTATION
public static final ID3FrameType
NETRADIOOWNER
public static final ID3FrameType
SETSUBTITLE
public static final ID3FrameType
MOOD
public static final ID3FrameType
PRODUCEDNOTICE
public static final ID3FrameType
ENCODINGTIME
public static final ID3FrameType
RELEASETIME
public static final ID3FrameType
TAGGINGTIME
public static final ID3FrameType
ALBUMSORTORDER
public static final ID3FrameType
PERFORMERSORTORDER
public static final ID3FrameType
TITLESORTORDER
public static final ID3FrameType
USERTEXT
public static final ID3FrameType
WWWAUDIOFILE
public static final ID3FrameType
WWWARTIST
public static final ID3FrameType
WWWAUDIOSOURCE
public static final ID3FrameType
WWWCOMMERCIALINFO
public static final ID3FrameType
WWWCOPYRIGHT
public static final ID3FrameType
WWWPUBLISHER
public static final ID3FrameType
WWWRADIOPAGE
public static final ID3FrameType
WWWPAYMENT
public static final ID3FrameType
WWWUSER
public static final ID3FrameType
INVOLVEDPEOPLE
public static final ID3FrameType
MUSICIANCREDITLIST
public static final ID3FrameType
kINVOLVEDPEOPLE2
public static final ID3FrameType
UNSYNCEDLYRICS
public static final ID3FrameType
COMMENT
public static final ID3FrameType
TERMSOFUSE
public static final ID3FrameType
UNIQUEFILEID
public static final ID3FrameType
CDID
public static final ID3FrameType
EVENTTIMING
public static final ID3FrameType
MPEGLOOKUP
public static final ID3FrameType
SYNCEDTEMPO
public static final ID3FrameType
SYNCEDLYRICS
public static final ID3FrameType
VOLUMEADJ
public static final ID3FrameType
kVOLUMEADJ2
public static final ID3FrameType
EQUALIZATION
public static final ID3FrameType
kEQUALIZATION2
public static final ID3FrameType
REVERB
public static final ID3FrameType
PICTURE
public static final ID3FrameType
GENERALOBJECT
public static final ID3FrameType
PLAYCOUNTER
public static final ID3FrameType
POPULARIMETER
public static final ID3FrameType
BUFFERSIZE
public static final ID3FrameType
CRYPTEDMETA
public static final ID3FrameType
AUDIOCRYPTO
public static final ID3FrameType
LINKEDINFO
public static final ID3FrameType
POSITIONSYNC
public static final ID3FrameType
COMMERCIAL
public static final ID3FrameType
CRYPTOREG
public static final ID3FrameType
GROUPINGREG
public static final ID3FrameType
PRIVATE
public static final ID3FrameType
OWNERSHIP
public static final ID3FrameType
SIGNATURE
public static final ID3FrameType
SEEKFRAME
public static final ID3FrameType
AUDIOSEEKPOINT
public static final ID3FrameType[]
kALL
private static final Map
kMap
Constructors Summary
public ID3FrameType(String short_id, String long_id_1, String long_id_2, String description)

		this(short_id, long_id_1, long_id_2, description, getFrameOrder(
				short_id, long_id_1, long_id_2));
	
public ID3FrameType(String short_id, String long_id_1, String long_id_2, String description, Number frame_order)

		//		try
		//		{
		this.frame_order = frame_order;
		this.description = description;
		if ((short_id == null) || short_id.length() == 0)
			short_id = null;
		if ((long_id_1 == null) || long_id_1.length() == 0)
			long_id_1 = null;
		if ((long_id_2 == null) || long_id_2.length() == 0)
			long_id_2 = null;
		this.short_id = short_id;
		this.long_id = (long_id_1 == null) ? long_id_2 : long_id_1;

		if ((long_id_1 != null) && (long_id_2 != null)
				&& (long_id_1 != long_id_2))
			throw new Error("long_id_1: " + long_id_1 + ", long_id_2: "
					+ long_id_2);
		//		}
		//		catch (Error e)
		//		{

		//			throw e;
		//		}
	
public ID3FrameType(String frame_id, String description)

		this.description = description;
		this.long_id = frame_id;
		this.short_id = null;
		this.frame_order = DEFAULT_FRAME_ORDER;
	
Methods Summary
public static org.cmc.music.common.ID3FrameTypeget(java.lang.String id)


	    
	
		ID3FrameType result = (ID3FrameType) kMap.get(id);
		return result;
	
private static java.lang.NumbergetFrameOrder(java.lang.String short_id, java.lang.String long_id_1, java.lang.String long_id_2)


	      
			 
	
		try
		{
			//			if(true)
			//				return kDEFAULT_FRAME_ORDER;

			String frameid = long_id_1;
			if (frameid == null)
				frameid = long_id_2;
			if (frameid == null)
				frameid = short_id;
			if (frameid == null)
				return DEFAULT_FRAME_ORDER;

			return frameid.charAt(0) == 'T"
					? TEXT_FRAME_ORDER
					: DEFAULT_FRAME_ORDER;
		}
		catch (Throwable e)
		{




			return DEFAULT_FRAME_ORDER;
		}
	
public java.lang.NumbergetFrameOrder()

		return frame_order;
	
public booleanmatches(java.lang.String s)

		return ((long_id != null) && long_id.equalsIgnoreCase(s))
				|| ((short_id != null) && short_id.equalsIgnoreCase(s));
	
public java.lang.StringtoString()

		return "{ " + short_id + " / " + long_id + ": " + description + " }";