FileDocCategorySizeDatePackage
TLANTextInformationID3V2Frame.javaAPI Docjid3 0.463503Sun Feb 06 18:11:23 GMT 2005org.blinkenlights.jid3.v2

TLANTextInformationID3V2Frame

public class TLANTextInformationID3V2Frame extends TextInformationID3V2Frame
author
paul Text frame containing the language(s) used in this track. Although this requirement is not enforced, languages should be specified using ISO-639-2 three letter language codes.

Fields Summary
private String
m_sLanguages
Constructors Summary
public TLANTextInformationID3V2Frame(String sLanguages)
Constructor.

param
sLanguages the language(s) used in this track


                  
      
    
        // We could try to check to see if the language codes are valid... but in Sun's
        // documentation of the getLanguage method of the Locale class in jdk1.4, it is
        // claimed that ISO639 is not a stable standard.
        super(sLanguages);
        
        m_sLanguages = sLanguages;
    
public TLANTextInformationID3V2Frame(InputStream oIS)

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

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

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

        return "TLAN".getBytes();
    
public java.lang.StringgetLanguages()
Get the language(s) used in this track.

return
the language(s) used in this track

        return m_sLanguages;
    
public voidsetLanguages(java.lang.String sLanguages)
Set the language(s) used in this track.

param
sLanguages the language(s) used in this track

        m_sLanguages = sLanguages;
        m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
        m_sInformation = sLanguages;
    
public java.lang.StringtoString()

        return "Language(s): [" + m_sInformation + "]";