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

MLLTID3V2Frame

public class MLLTID3V2Frame extends ID3V2Frame
Frame containing MPEG location lookup table.
author
paul

Fields Summary
private byte[]
m_abyMPEGLocationLookupTable
Constructors Summary
public MLLTID3V2Frame(byte[] abyMPEGLocationLookupTable)
Constructor.

param
abyMPEGLocationLookupTable MPEG location lookup table data
throws
ID3Exception if abyMPEGLocationLookupTable is null or zero-length, or if you do not know what you are doing


                                   
      
         
    
        if (abyMPEGLocationLookupTable == null)
        {
            throw new ID3Exception("MPEG location lookup table cannot be null in MLLT frame.");
        }
        m_abyMPEGLocationLookupTable = abyMPEGLocationLookupTable;
    
public MLLTID3V2Frame(InputStream oIS)

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

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

        if ((oOther == null) || (!(oOther instanceof MLLTID3V2Frame)))
        {
            return false;
        }
        
        MLLTID3V2Frame oOtherMLLT = (MLLTID3V2Frame)oOther;
        
        return (Arrays.equals(m_abyMPEGLocationLookupTable, oOtherMLLT.m_abyMPEGLocationLookupTable));
    
protected byte[]getFrameId()

        return "MLLT".getBytes();
    
public byte[]getMPEGLocationLookupTable()
Get MPEG lookup table data.

return
an array of bytes which contain lookup table information

        return m_abyMPEGLocationLookupTable;
    
public java.lang.StringtoString()

        return "MPEG location lookup table: length=" + m_abyMPEGLocationLookupTable.length;
    
protected voidwriteBody(ID3DataOutputStream oIDOS)

        // mpeg location lookup table data
        oIDOS.write(m_abyMPEGLocationLookupTable);