|
||||||||||
| 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 within 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()
|
java.lang.String |
getComment()
|
java.lang.String |
getCopyRight()
|
long |
getCurrentAsfChunkSize()
This method calculates the total amount of bytes, the chunk would consume in an ASF file. |
java.lang.String |
getRating()
|
java.lang.String |
getTitle()
|
boolean |
isEmpty()
true if it is not necessary to write the chunk into an ASF file, since it contains no information. |
java.lang.String |
prettyPrint(java.lang.String prefix)
This method creates a String containing useful information prepared to be printed on STD-OUT. |
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)
|
long |
writeInto(java.io.OutputStream out)
Writes the chunk into the specified output stream, as ASF stream chunk. |
| Methods inherited from class org.jaudiotagger.audio.asf.data.Chunk |
|---|
getChunckEnd, getChunkLength, getGuid, getPosition, setPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jaudiotagger.audio.asf.io.WriteableChunk |
|---|
getGuid |
| 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 java.lang.String getComment()
public java.lang.String getCopyRight()
public long getCurrentAsfChunkSize()
getCurrentAsfChunkSize in interface WriteableChunkpublic java.lang.String getRating()
public java.lang.String getTitle()
public boolean isEmpty()
true if it is not necessary to write the chunk into an ASF file, since it contains no information.
isEmpty in interface WriteableChunktrue if no useful data will be preserved.public java.lang.String prettyPrint(java.lang.String prefix)
prettyPrint in class Chunkprefix - each line gets this string prepended.
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.
public long writeInto(java.io.OutputStream out)
throws java.io.IOException
writeInto in interface WriteableChunkout - stream to write into.
java.io.IOException - on I/O errors
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||