FileDocCategorySizeDatePackage
TOFNTextInformationID3V2Frame.javaAPI Docjid3 0.463414Sun Feb 06 18:11:18 GMT 2005org.blinkenlights.jid3.v2

TOFNTextInformationID3V2Frame

public class TOFNTextInformationID3V2Frame extends TextInformationID3V2Frame
author
paul Text frame containing the original, or preferred, filename for the tagged file.

Fields Summary
private String
m_sOriginalFilename
Constructors Summary
public TOFNTextInformationID3V2Frame(String sOriginalFilename)
Constructor.

param
sOriginalFilename the original, or preferred, filename for the tagged file

    
                     
      
    
        super(sOriginalFilename);
        
        m_sOriginalFilename = sOriginalFilename;
    
public TOFNTextInformationID3V2Frame(InputStream oIS)

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

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

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

        return "TOFN".getBytes();
    
public java.lang.StringgetOriginalFilename()
Get the original, or preferred, filename for this tagged file.

return
the original, or preferred, filename for the tagged file

        return m_sOriginalFilename;
    
public voidsetOriginalFilename(java.lang.String sOriginalFilename)
Set the original, or preferred, filename for the tagged file.

param
sOriginalFilename the original, or preferred, filename for the tagged file

        m_sOriginalFilename = sOriginalFilename;
        m_oTextEncoding = TextEncoding.getDefaultTextEncoding();
        m_sInformation = sOriginalFilename;
    
public java.lang.StringtoString()

        return "Original filename: [" + m_sInformation + "]";