|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectentagged.audioformats.asf.data.Chunk
entagged.audioformats.asf.data.ExtendedContentDescription
public class ExtendedContentDescription
This structure represents the data of a chunk, wich contains extended content
description.
These properties are simply represented by
ContentDescriptor
| Field Summary |
|---|
| Fields inherited from class entagged.audioformats.asf.data.Chunk |
|---|
chunkLength, guid, position |
| Constructor Summary | |
|---|---|
ExtendedContentDescription()
Creates an instance. |
|
ExtendedContentDescription(long pos,
BigInteger chunkLen)
Creates an instance. |
|
| Method Summary | |
|---|---|
void |
addDescriptor(ContentDescriptor toAdd)
This method inserts the given ContentDescriptor. |
void |
addOrReplace(ContentDescriptor descriptor)
This method adds or replaces an existing content descriptor. |
String |
getAlbum()
Returns the album entered in the content descriptor chunk. |
String |
getArtist()
Returns the "WM/AlbumArtist" entered in the extended content description. |
byte[] |
getBytes()
This method creates a byte array which can be written to asf files. |
ContentDescriptor |
getDescriptor(String name)
Returns a previously inserted content descriptor. |
long |
getDescriptorCount()
|
Collection |
getDescriptors()
Returns a collection of all ContentDescriptorobjects stored in
this extended content description. |
String |
getGenre()
Returns the Genre entered in the content descriptor chunk. |
String |
getTrack()
Returns the Track entered in the content descriptor chunk. |
String |
getYear()
Returns the Year entered in the extended content descripion. |
String |
prettyPrint()
This method creates a String containing the tag elements an their values for printing. |
ContentDescriptor |
remove(String id)
This method removes the content descriptor with the given name. |
| Methods inherited from class entagged.audioformats.asf.data.Chunk |
|---|
getChunckEnd, getChunkLength, getGuid, getPosition, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExtendedContentDescription()
public ExtendedContentDescription(long pos,
BigInteger chunkLen)
pos - Position of header object within file or stream.chunkLen - Length of the represented chunck.| Method Detail |
|---|
public void addDescriptor(ContentDescriptor toAdd)
toAdd - ContentDescriptor to insert.public void addOrReplace(ContentDescriptor descriptor)
descriptor - Descriptor to be added or replaced.public String getAlbum()
"" if not defined.public String getArtist()
"" if not defined.public byte[] getBytes()
public ContentDescriptor getDescriptor(String name)
name - name of the content descriptor.
null if not present.public long getDescriptorCount()
public Collection getDescriptors()
ContentDescriptorobjects stored in
this extended content description.
ContentDescriptorobjects.public String getGenre()
"" if not defined.public String getTrack()
"" if not defined.public String getYear()
"" if not defined.public String prettyPrint()
prettyPrint in class Chunkpublic ContentDescriptor remove(String id)
id - The id (name) of the descriptor which should be removed.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||