FileDocCategorySizeDatePackage
RVADID3V2Frame.javaAPI Docjid3 0.463341Sun Feb 06 18:11:19 GMT 2005org.blinkenlights.jid3.v2

RVADID3V2Frame

public class RVADID3V2Frame extends ID3V2Frame
Frame containing relative volume adjustment details. There is no parsing support for this frame.
author
paul

Fields Summary
private byte[]
m_abyData
Constructors Summary
public RVADID3V2Frame(byte[] abyData)
Creates a new instance of RVADID3V2Frame. (No parsing support for this frame.)

param
abyData the raw data for this frame
throws
ID3Exception if abyData is null, or if you indicate that you do not know what you are doing

    
                                                 
      
         
    
        if (abyData == null)
        {
            throw new ID3Exception("Data byte array cannot be null in RVAD frame.");
        }
        m_abyData = abyData;
    
public RVADID3V2Frame(InputStream oIS)

        try
        {
            ID3DataInputStream oFrameDataID3DIS = new ID3DataInputStream(oIS);
            
            m_abyData = new byte[oFrameDataID3DIS.available()];
            oFrameDataID3DIS.readFully(m_abyData);
        }
        catch (Exception e)
        {
            throw new InvalidFrameID3Exception(e);
        }
    
Methods Summary
public voidaccept(ID3Visitor oID3Visitor)

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

        if ((oOther == null) || (!(oOther instanceof RVADID3V2Frame)))
        {
            return false;
        }
        
        RVADID3V2Frame oOtherRVAD = (RVADID3V2Frame)oOther;
        
        return (Arrays.equals(m_abyData, oOtherRVAD.m_abyData));
    
public byte[]getFrameData()
Get raw data from this frame. It is up to you to parse it.

return
raw frame data

        return m_abyData;
    
protected byte[]getFrameId()

        return "RVAD".getBytes();
    
public java.lang.StringtoString()

        return "Relative volume adjustment: Raw data size=[" + m_abyData.length + "]";
    
protected voidwriteBody(ID3DataOutputStream oIDOS)

        oIDOS.write(m_abyData);