2
* @author : Paul Taylor
4
* Version @version:$Id: ReceivedAsTypes.java,v 1.3 2007/08/06 16:04:36 paultaylor Exp $
6
* Jaudiotagger Copyright (C)2004,2005
8
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
9
* General Public License as published by the Free Software Foundation; either version 2.1 of the License,
10
* or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
13
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
* See the GNU Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public License ainteger with this library; if not,
17
* you can get a copy from http://www.opensource.org/licenses/lgpl-license.php or write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
* Used by Commercial Frame (COMR)
23
package org.jaudiotagger.tag.id3.valuepair;
25
import org.jaudiotagger.tag.datatype.AbstractIntStringValuePair;
27
public class ReceivedAsTypes extends AbstractIntStringValuePair
29
private static ReceivedAsTypes receivedAsTypes;
31
public static ReceivedAsTypes getInstanceOf()
33
if (receivedAsTypes == null)
35
receivedAsTypes = new ReceivedAsTypes();
37
return receivedAsTypes;
40
private ReceivedAsTypes()
42
idToValue.put(0x00, "Other");
43
idToValue.put(0x01, "Standard CD album with other songs");
44
idToValue.put(0x02, "Compressed audio on CD");
45
idToValue.put(0x03, "File over the Internet");
46
idToValue.put(0x04, "Stream over the Internet");
47
idToValue.put(0x05, "As note sheets");
48
idToValue.put(0x06, "As note sheets in a book with other sheets");
49
idToValue.put(0x07, "Music on other media");
50
idToValue.put(0x08, "Non-musical merchandise");
2
* @author : Paul Taylor
4
* Version @version:$Id: ReceivedAsTypes.java 867 2010-01-28 16:27:11Z paultaylor $
6
* Jaudiotagger Copyright (C)2004,2005
8
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
9
* General Public License as published by the Free Software Foundation; either version 2.1 of the License,
10
* or (at your option) any later version.
12
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
13
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
* See the GNU Lesser General Public License for more details.
16
* You should have received a copy of the GNU Lesser General Public License ainteger with this library; if not,
17
* you can get a copy from http://www.opensource.org/licenses/lgpl-license.php or write to the Free Software
18
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
* Used by Commercial Frame (COMR)
23
package org.jaudiotagger.tag.id3.valuepair;
25
import org.jaudiotagger.tag.datatype.AbstractIntStringValuePair;
28
* Defines how song was purchased used by the COMR frame
31
public class ReceivedAsTypes extends AbstractIntStringValuePair
33
//The number of bytes used to hold the text encoding field size
34
public static final int RECEIVED_AS_FIELD_SIZE = 1;
36
private static ReceivedAsTypes receivedAsTypes;
38
public static ReceivedAsTypes getInstanceOf()
40
if (receivedAsTypes == null)
42
receivedAsTypes = new ReceivedAsTypes();
44
return receivedAsTypes;
47
private ReceivedAsTypes()
49
idToValue.put(0x00, "Other");
50
idToValue.put(0x01, "Standard CD album with other songs");
51
idToValue.put(0x02, "Compressed audio on CD");
52
idToValue.put(0x03, "File over the Internet");
53
idToValue.put(0x04, "Stream over the Internet");
54
idToValue.put(0x05, "As note sheets");
55
idToValue.put(0x06, "As note sheets in a book with other sheets");
56
idToValue.put(0x07, "Music on other media");
57
idToValue.put(0x08, "Non-musical merchandise");