|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jaudiotagger.audio.asf.data.Chunk
org.jaudiotagger.audio.asf.data.ContentDescription
public class ContentDescription
This class represents the data of a chunk which contains title, author,
copyright, description and the rating of the file.
It is optional whithin asf files. But if exists only once.
Constructor Summary | |
---|---|
ContentDescription()
Creates an instance. |
|
ContentDescription(long pos,
java.math.BigInteger chunkLen)
Creates an instance. |
Method Summary | |
---|---|
java.lang.String |
getAuthor()
|
byte[] |
getBytes()
This method creates a byte array that could directly be written to an asf file. |
java.lang.String |
getComment()
|
java.lang.String |
getCopyRight()
|
java.lang.String |
getRating()
|
java.lang.String |
getTitle()
|
java.lang.String |
prettyPrint()
(overridden) |
void |
setAuthor(java.lang.String fileAuthor)
|
void |
setComment(java.lang.String tagComment)
|
void |
setCopyRight(java.lang.String cpright)
|
void |
setRating(java.lang.String ratingText)
|
void |
setTitle(java.lang.String songTitle)
|
Methods inherited from class org.jaudiotagger.audio.asf.data.Chunk |
---|
getChunckEnd, getChunkLength, getGuid, getPosition, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContentDescription()
public ContentDescription(long pos, java.math.BigInteger chunkLen)
pos
- Position of content description within file or streamchunkLen
- Length of content description.Method Detail |
---|
public java.lang.String getAuthor()
public byte[] getBytes()
public java.lang.String getComment()
public java.lang.String getCopyRight()
public java.lang.String getRating()
public java.lang.String getTitle()
public java.lang.String prettyPrint()
prettyPrint
in class Chunk
entagged.audioformats.asf.data.Chunk#prettyPrint()
public void setAuthor(java.lang.String fileAuthor) throws java.lang.IllegalArgumentException
fileAuthor
- The author to set.
java.lang.IllegalArgumentException
- If "UTF-16LE"-byte-representation would take more than 65535
bytes.public void setComment(java.lang.String tagComment) throws java.lang.IllegalArgumentException
tagComment
- The comment to set.
java.lang.IllegalArgumentException
- If "UTF-16LE"-byte-representation would take more than 65535
bytes.public void setCopyRight(java.lang.String cpright) throws java.lang.IllegalArgumentException
cpright
- The copyRight to set.
java.lang.IllegalArgumentException
- If "UTF-16LE"-byte-representation would take more than 65535
bytes.public void setRating(java.lang.String ratingText) throws java.lang.IllegalArgumentException
ratingText
- The rating to be set.
java.lang.IllegalArgumentException
- If "UTF-16LE"-byte-representation would take more than 65535
bytes.public void setTitle(java.lang.String songTitle) throws java.lang.IllegalArgumentException
songTitle
- The title to set.
java.lang.IllegalArgumentException
- If "UTF-16LE"-byte-representation would take more than 65535
bytes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |