|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object entagged.audioformats.mp3.util.id3frames.Id3Frame entagged.audioformats.mp3.util.id3frames.TextId3Frame entagged.audioformats.mp3.util.id3frames.ApicId3Frame
public class ApicId3Frame
Field Summary |
---|
Fields inherited from class entagged.audioformats.mp3.util.id3frames.TextId3Frame |
---|
common, content, encoding, id |
Fields inherited from class entagged.audioformats.mp3.util.id3frames.Id3Frame |
---|
flags, version |
Constructor Summary | |
---|---|
ApicId3Frame(byte[] rawContent,
byte version)
|
|
ApicId3Frame(String description,
String mime,
byte pictureType,
byte[] data)
|
Method Summary | |
---|---|
protected byte[] |
build()
This method creates a binary representation of the current Id3Frame data.This data can directly be written to a file or stream. s |
void |
copyContent(TagField field)
This method copies the data of the given filed to the current data. |
byte[] |
getData()
|
String |
getMimeType()
|
byte |
getPictureType()
|
String |
getPictureTypeAsString()
|
boolean |
isBinary()
(overridden) |
boolean |
isEmpty()
Determines whether the content of the field is empty. |
protected void |
populate(byte[] raw)
This method reads the given data of an ID3-Frame and interprets it implementation specific. The values of the Id3Frame instance are adjusted. |
String |
toString()
This method returns a human readable description of the fields contents. For text fields it should be the text itself. |
Methods inherited from class entagged.audioformats.mp3.util.id3frames.TextId3Frame |
---|
getContent, getEncoding, getId, isCommon, setContent, setEncoding |
Methods inherited from class entagged.audioformats.mp3.util.id3frames.Id3Frame |
---|
clone, copy, equals, getBytes, getFlags, getIdBytes, getRawContent, getSize, getString, indexOfFirstNull, isBinary |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface entagged.audioformats.generic.TagField |
---|
getRawContent, isBinary |
Constructor Detail |
---|
public ApicId3Frame(byte[] rawContent, byte version) throws UnsupportedEncodingException
UnsupportedEncodingException
public ApicId3Frame(String description, String mime, byte pictureType, byte[] data)
Method Detail |
---|
protected byte[] build() throws UnsupportedEncodingException
Id3Frame
Id3Frame
data.
build
in class TextId3Frame
UnsupportedEncodingException
- If a text-Frame is constructed there can occur an error
during text conversions.public void copyContent(TagField field)
TagField
copyContent
in interface TagField
copyContent
in class TextId3Frame
field
- The field containing the data to be taken.public byte[] getData()
public String getMimeType()
public byte getPictureType()
public String getPictureTypeAsString()
public boolean isBinary()
Id3Frame
isBinary
in interface TagField
isBinary
in class TextId3Frame
true
if field represents binary data (not human
readable).TagField.isBinary()
public boolean isEmpty()
TagField
isEmpty
in interface TagField
isEmpty
in class TextId3Frame
true
if no data is stored (or empty String).protected void populate(byte[] raw) throws UnsupportedEncodingException
Id3Frame
populate
in class TextId3Frame
raw
- The frame data.
UnsupportedEncodingException
- On text frames there can be such errors.public String toString()
TagField
toString
in interface TagField
toString
in class TextId3Frame
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |