|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TagField
Implementing classes represent a tag field for the entagged audio library.
Very basic functionality is defined for use with
Tag
.
Method Summary | |
---|---|
void |
copyContent(TagField field)
This method copies the data of the given filed to the current data. |
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 mehtod returns false . |
void |
isBinary(boolean b)
Deprecated. As for now is of no use. Implementations should use another way of setting this property. |
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. |
String |
toString()
This method returns a human readable description of the fields contents. For text fields it should be the text itself. |
Method Detail |
---|
void copyContent(TagField field)
field
- The field containing the data to be taken.String getId()
AbstractTag
will use the "id" to summarize multiple
fields.
byte[] getRawContent() throws UnsupportedEncodingException
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.boolean isBinary()
false
.
true
if field represents binary data (not human
readable).void isBinary(boolean b)
b
- true
, if the field contains binary data.boolean isCommon()
true
if the field is of common use.boolean isEmpty()
true
if no data is stored (or empty String).String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |