public class AggregatedFrame extends Object implements TagTextField
Modifier and Type | Field and Description |
---|---|
protected Set<AbstractID3v2Frame> |
frames |
Constructor and Description |
---|
AggregatedFrame() |
Modifier and Type | Method and Description |
---|---|
void |
addFrame(AbstractID3v2Frame frame) |
void |
copyContent(TagField field)
This method copies the data of the given field to the current data.
|
String |
getContent()
Returns the content of the underlying frames in order.
|
Charset |
getEncoding()
Returns the current used charset encoding.
|
Set<AbstractID3v2Frame> |
getFrames() |
String |
getId()
Returns the Id of the represented tag field.
This value should uniquely identify a kind of tag data, like title. |
byte[] |
getRawContent()
This method delivers the binary representation of the fields data in
order to be directly written to the file.
|
boolean |
isBinary()
Determines whether the represented field contains (is made up of) binary
data, instead of text data.
Software can identify fields to be displayed because they are human readable if this method returns false . |
void |
isBinary(boolean b)
This method will set the field to represent binary data.
Some implementations may support conversions. As of now (Octobre 2005) there is no implementation really using this method to perform useful operations. |
boolean |
isCommon()
Identifies a field to be of common use.
Some software may differ between common and not common fields. |
boolean |
isEmpty()
Determines whether the content of the field is empty.
|
void |
setContent(String content)
Sets the content of the field.
|
void |
setEncoding(Charset encoding)
Sets the charset encoding used by the field.
|
protected Set<AbstractID3v2Frame> frames
public void addFrame(AbstractID3v2Frame frame)
public Set<AbstractID3v2Frame> getFrames()
public String getContent()
getContent
in interface TagTextField
public Charset getEncoding()
getEncoding
in interface TagTextField
public void setContent(String content)
setContent
in interface TagTextField
content
- fields content.public void setEncoding(Charset encoding)
setEncoding
in interface TagTextField
encoding
- charset.public void copyContent(TagField field)
TagField
copyContent
in interface TagField
field
- The field containing the data to be taken.public String getId()
TagField
AbstractTag
will use the "id" to summarize multiple
fields.public boolean isCommon()
TagField
public boolean isBinary()
TagField
false
.public void isBinary(boolean b)
TagField
public boolean isEmpty()
TagField
public byte[] getRawContent() throws UnsupportedEncodingException
TagField
getRawContent
in interface TagField
UnsupportedEncodingException
- Most tag data represents text. In some cases the underlying
implementation will need to convert the text data in java to
a specific charset encoding. In these cases an
UnsupportedEncodingException
may occur.Copyright © 2005–2020 jthink.net. All rights reserved.