|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.vdheide.mp3.TagContent
An instance of this class contains the content read from a ID3(v2) tag. This class is designed to be as flexible as possible to reduce the number of cases where information has to be returned as binary when it is rather more structured.
It provides storage for - a type (e.g. a MIME-type or a language, Text) - a subtype (text or binary) - a description (text) - the content (text or binary)
Unused fields should be set to null
.
Constructor Summary | |
TagContent()
Create a new instance with all fields set to null. |
Method Summary | |
byte[] |
getBinaryContent()
Get content |
byte[] |
getBinarySubtype()
Get subtype |
java.lang.String |
getDescription()
Get description |
java.lang.String |
getTextContent()
Get content |
java.lang.String |
getTextSubtype()
Get subtype |
java.lang.String |
getType()
|
void |
setContent(byte[] content)
Set content field with binary data |
void |
setContent(java.lang.String content)
Set content field with textual data |
void |
setDescription(java.lang.String desc)
Set description field |
void |
setSubtype(byte[] subtype)
Set subtype field with binary data |
void |
setSubtype(java.lang.String subtype)
Set subtype field with textual data |
void |
setType(java.lang.String type)
Set type field |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TagContent()
Method Detail |
public void setType(java.lang.String type)
type
- Type to setpublic java.lang.String getType()
public void setSubtype(java.lang.String subtype)
subtype
- Subtype to setpublic void setSubtype(byte[] subtype)
subtype
- Subtype to setpublic java.lang.String getTextSubtype()
public byte[] getBinarySubtype()
public void setDescription(java.lang.String desc)
desc
- Description to setpublic java.lang.String getDescription()
public void setContent(java.lang.String content)
content
- Content to setpublic void setContent(byte[] content)
content
- Content to setpublic java.lang.String getTextContent()
public byte[] getBinaryContent()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |