Package org.cmc.music.myid3.id3v2

Source Code of org.cmc.music.myid3.id3v2.MyID3v2FrameImage

/*
* Written By Charles M. Chen
*
* Created on Sep 2, 2005
*
*/

package org.cmc.music.myid3.id3v2;

import org.cmc.music.metadata.ImageData;

public class MyID3v2FrameImage extends MyID3v2FrameData
{
  public final byte imageData[];
  public final String mimeType;
  public final String description;
  public final int pictureType;

  public MyID3v2FrameImage(String frame_id, byte data_bytes[],
      final ID3v2FrameFlags flags, final byte imageData[],
      final String mimeType, final String description,
      final int pictureType)
  {
    super(frame_id, data_bytes, flags);
    this.imageData = imageData;
    this.mimeType = mimeType;
    this.description = description;
    this.pictureType = pictureType;
  }

  public ImageData getImageData()
  {
    return new ImageData(imageData, mimeType, description, pictureType);
  }

}
TOP

Related Classes of org.cmc.music.myid3.id3v2.MyID3v2FrameImage

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.