Package com.mpatric.mp3agic
Class ID3v2PictureFrameData
java.lang.Object
com.mpatric.mp3agic.AbstractID3v2FrameData
com.mpatric.mp3agic.ID3v2PictureFrameData
- Direct Known Subclasses:
ID3v2ObseletePictureFrameData
public class ID3v2PictureFrameData extends AbstractID3v2FrameData
-
Field Summary
Fields Modifier and Type Field Description protected EncodedText
description
protected byte[]
imageData
protected String
mimeType
protected byte
pictureType
-
Constructor Summary
Constructors Constructor Description ID3v2PictureFrameData(boolean unsynchronisation)
ID3v2PictureFrameData(boolean unsynchronisation, byte[] bytes)
ID3v2PictureFrameData(boolean unsynchronisation, String mimeType, byte pictureType, EncodedText description, byte[] imageData)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
EncodedText
getDescription()
byte[]
getImageData()
protected int
getLength()
String
getMimeType()
byte
getPictureType()
int
hashCode()
protected byte[]
packFrameData()
void
setDescription(EncodedText description)
void
setImageData(byte[] imageData)
void
setMimeType(String mimeType)
void
setPictureType(byte pictureType)
protected void
unpackFrameData(byte[] bytes)
Methods inherited from class com.mpatric.mp3agic.AbstractID3v2FrameData
packAndUnsynchroniseFrameData, synchroniseAndUnpackFrameData, toBytes
-
Field Details
-
mimeType
-
pictureType
protected byte pictureType -
description
-
imageData
protected byte[] imageData
-
-
Constructor Details
-
ID3v2PictureFrameData
public ID3v2PictureFrameData(boolean unsynchronisation) -
ID3v2PictureFrameData
public ID3v2PictureFrameData(boolean unsynchronisation, String mimeType, byte pictureType, EncodedText description, byte[] imageData) -
ID3v2PictureFrameData
- Throws:
InvalidDataException
-
-
Method Details
-
unpackFrameData
- Specified by:
unpackFrameData
in classAbstractID3v2FrameData
- Throws:
InvalidDataException
-
packFrameData
protected byte[] packFrameData()- Specified by:
packFrameData
in classAbstractID3v2FrameData
-
getLength
protected int getLength()- Specified by:
getLength
in classAbstractID3v2FrameData
-
getMimeType
-
setMimeType
-
getPictureType
public byte getPictureType() -
setPictureType
public void setPictureType(byte pictureType) -
getDescription
-
setDescription
-
getImageData
public byte[] getImageData() -
setImageData
public void setImageData(byte[] imageData) -
hashCode
public int hashCode()- Overrides:
hashCode
in classAbstractID3v2FrameData
-
equals
- Overrides:
equals
in classAbstractID3v2FrameData
-