FileDocCategorySizeDatePackage
TMEDTextInformationID3V2Frame.javaAPI Docjid3 0.464432Sun Feb 06 18:11:16 GMT 2005org.blinkenlights.jid3.v2

TMEDTextInformationID3V2Frame

public class TMEDTextInformationID3V2Frame extends TextInformationID3V2Frame
author
paul Text frame containing the media type from which the recording in this track was transferred. Refer to the ID3 v2.3.0 specification for a description of legal values.

Fields Summary
public static final String
DIGITAL
public static final String
ANALOG
public static final String
CD
public static final String
LASERDISC
public static final String
TURNTABLE_RECORD
public static final String
MINIDISC
public static final String
DAT
public static final String
DIGITAL_CASSETTE
public static final String
DVD
public static final String
TV
public static final String
VIDEO
public static final String
RADIO
public static final String
TELEPHONE
public static final String
PHILIPS_CASSETTE
public static final String
REEL
private String
m_sMediaType
Constructors Summary
public TMEDTextInformationID3V2Frame(String sMediaType)
Constructor.

param
sMediaType the media type from which the recording in this track was transferred


                        
      
    
        super(sMediaType);
        
        m_sMediaType = sMediaType;
    
public TMEDTextInformationID3V2Frame(InputStream oIS)

        super(oIS);
        
        m_sMediaType = m_sInformation;
    
Methods Summary
public voidaccept(ID3Visitor oID3Visitor)

        oID3Visitor.visitTMEDTextInformationID3V2Frame(this);
    
public booleanequals(java.lang.Object oOther)

        if ((oOther == null) || (!(oOther instanceof TMEDTextInformationID3V2Frame)))
        {
            return false;
        }
        
        TMEDTextInformationID3V2Frame oOtherTMED = (TMEDTextInformationID3V2Frame)oOther;
        
        return (m_sMediaType.equals(oOtherTMED.m_sMediaType) &&
                m_oTextEncoding.equals(oOtherTMED.m_oTextEncoding) &&
                m_sInformation.equals(oOtherTMED.m_sInformation));
    
protected byte[]getFrameId()

        return "TMED".getBytes();
    
public java.lang.StringgetMediaType()
Get the media type.

return
the media type from which the recording in this track was transferred

        return m_sMediaType;
    
public voidsetMediaType(java.lang.String sMediaType)
Set the media type.

param
sMediaType the media type from which the recording in this track was transferred

        m_sMediaType = sMediaType;
        m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
        m_sInformation = sMediaType;
    
public java.lang.StringtoString()

        return "Media type: [" + m_sInformation + "]";