|
||||||||||
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.CommId3Frame
public class CommId3Frame
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 | |
---|---|
CommId3Frame(byte[] rawContent,
byte version)
|
|
CommId3Frame(String content)
|
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. |
int |
getCommentStart(byte[] content,
int offset,
String encoding)
This methods interprets content to be a valid comment section. |
String |
getLangage()
|
String |
getShortDescription()
|
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, isBinary, 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.TagTextField |
---|
getContent, getEncoding, setContent, setEncoding |
Methods inherited from interface entagged.audioformats.generic.TagField |
---|
getId, getRawContent, isBinary, isBinary, isCommon |
Constructor Detail |
---|
public CommId3Frame(String content)
public CommId3Frame(byte[] rawContent, byte version) throws UnsupportedEncodingException
UnsupportedEncodingException
Method Detail |
---|
public String getLangage()
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 int getCommentStart(byte[] content, int offset, String encoding)
content
- The comment data.offset
- The offset where the short descriptions is about to start.encoding
- the encoding of the field.
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 String getShortDescription()
public boolean isEmpty()
TagField
isEmpty
in interface TagField
isEmpty
in class TextId3Frame
true
if no data is stored (or empty String).public void copyContent(TagField field)
TagField
copyContent
in interface TagField
copyContent
in class TextId3Frame
field
- The field containing the data to be taken.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 |