|
||||||||||
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.ExtendedContentDescription
public class ExtendedContentDescription
This structure represents the data of a chunk, wich contains extended content
description.
These properties are simply represented by
entagged.audioformats.asf.data.ContentDescriptor
Field Summary | |
---|---|
static java.lang.String[] |
DEFAULT_GENRES
|
Constructor Summary | |
---|---|
ExtendedContentDescription()
Creates an instance. |
|
ExtendedContentDescription(long pos,
java.math.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. |
java.lang.String |
getAlbum()
Returns the album entered in the content descriptor chunk. |
java.lang.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(java.lang.String name)
Returns a previously inserted content descriptor. |
long |
getDescriptorCount()
|
java.util.Collection |
getDescriptors()
Returns a collection of all ContentDescriptor objects stored in
this extended content description. |
java.lang.String |
getGenre()
Returns the Genre entered in the content descriptor chunk. |
java.lang.String |
getTrack()
Returns the Track entered in the content descriptor chunk. |
java.lang.String |
getYear()
Returns the Year entered in the extended content descripion. |
java.lang.String |
prettyPrint()
This method creates a String containing the tag elements an their values for printing. |
ContentDescriptor |
remove(java.lang.String id)
This method removes the content descriptor with the given name. |
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 |
Field Detail |
---|
public static final java.lang.String[] DEFAULT_GENRES
Constructor Detail |
---|
public ExtendedContentDescription()
public ExtendedContentDescription(long pos, java.math.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 java.lang.String getAlbum()
""
if not defined.public java.lang.String getArtist()
""
if not defined.public byte[] getBytes()
public ContentDescriptor getDescriptor(java.lang.String name)
name
- name of the content descriptor.
null
if not present.public long getDescriptorCount()
public java.util.Collection getDescriptors()
ContentDescriptor
objects stored in
this extended content description.
ContentDescriptor
objects.public java.lang.String getGenre()
""
if not defined.public java.lang.String getTrack()
""
if not defined.public java.lang.String getYear()
""
if not defined.public java.lang.String prettyPrint()
prettyPrint
in class Chunk
public ContentDescriptor remove(java.lang.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 |