|
||||||||||
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
public class TextId3Frame
Field Summary | |
---|---|
protected boolean |
common
|
protected String |
content
|
protected byte |
encoding
|
protected String |
id
|
Fields inherited from class entagged.audioformats.mp3.util.id3frames.Id3Frame |
---|
flags, version |
Constructor Summary | |
---|---|
TextId3Frame(String id,
byte[] rawContent,
byte version)
|
|
TextId3Frame(String id,
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. |
String |
getContent()
Returns the content of the field. |
String |
getEncoding()
Returns the current used charset encoding. |
String |
getId()
(overridden) For Id3-Frames its something like "TCOM","TENC","TALB" and so on. |
boolean |
isBinary()
(overridden) |
boolean |
isCommon()
(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. |
void |
setContent(String s)
Sets the content of the field. |
void |
setEncoding(String enc)
Sets the charset encoding used by the field. |
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.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 |
Field Detail |
---|
protected String content
protected byte encoding
protected String id
protected boolean common
Constructor Detail |
---|
public TextId3Frame(String id, String content)
public TextId3Frame(String id, byte[] rawContent, byte version) throws UnsupportedEncodingException
UnsupportedEncodingException
Method Detail |
---|
public String getEncoding()
TagTextField
getEncoding
in interface TagTextField
public void setEncoding(String enc)
TagTextField
setEncoding
in interface TagTextField
enc
- charset.public String getContent()
TagTextField
getContent
in interface TagTextField
public boolean isBinary()
Id3Frame
isBinary
in interface TagField
isBinary
in class Id3Frame
true
if field represents binary data (not human
readable).TagField.isBinary()
public String getId()
Id3Frame
getId
in interface TagField
getId
in class Id3Frame
TagField.getId()
public boolean isCommon()
Id3Frame
isCommon
in interface TagField
isCommon
in class Id3Frame
true
if the field is of common use.TagField.isCommon()
public void setContent(String s)
TagTextField
setContent
in interface TagTextField
s
- fields content.public boolean isEmpty()
TagField
isEmpty
in interface TagField
true
if no data is stored (or empty String).public void copyContent(TagField field)
TagField
copyContent
in interface TagField
field
- The field containing the data to be taken.protected void populate(byte[] raw) throws UnsupportedEncodingException
Id3Frame
populate
in class Id3Frame
raw
- The frame data.
UnsupportedEncodingException
- On text frames there can be such errors.protected byte[] build() throws UnsupportedEncodingException
Id3Frame
Id3Frame
data.
build
in class Id3Frame
UnsupportedEncodingException
- If a text-Frame is constructed there can occur an error
during text conversions.public String toString()
TagField
toString
in interface TagField
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |