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

UnknownTextInformationID3V2Frame.java

/*
 * UnknownTextInformationID3V2Frame.java
 *
 * Created on 3-Jan-2004
 *
 * Copyright (C)2004-2005 Paul Grebenc
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 * 
 * $Id: UnknownTextInformationID3V2Frame.java,v 1.5 2005/02/06 18:11:23 paul Exp $
 */

package org.blinkenlights.jid3.v2;

import java.io.*;

import org.blinkenlights.jid3.*;
import org.blinkenlights.jid3.util.*;

/**
 * @author paul
 *
 * To change the template for this generated type comment go to
 * Window>Preferences>Java>Code Generation>Code and Comments
 */
public class UnknownTextInformationID3V2Frame extends TextInformationID3V2Frame
{
    private String m_sFrameId = null;
    
    public UnknownTextInformationID3V2Frame(String sFrameId, InputStream oIS)
        throws ID3Exception
    {
        super(oIS);

        // store the frame id so we can return it if requested
        m_sFrameId = sFrameId;
    }
    
    public void accept(ID3Visitor oID3Visitor)
    {
        oID3Visitor.visitUnknownTextInformationID3V2Frame(this);
    }
    
    public byte[] getFrameId()
    {
        return m_sFrameId.getBytes();
    }
    
    public String toString()
    {
        return "Unknown text frame " + m_sFrameId + ": [" + m_sInformation + "]";
    }
}