|
||||||||||
| 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, which contains extended content
description.
These properties are simply represented by
ContentDescriptor
| Constructor Summary | |
|---|---|
ExtendedContentDescription()
Creates an instance. |
|
ExtendedContentDescription(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. |
boolean |
containsDescriptor(java.lang.String fieldName)
Looks if the given fieldName is already contained in this descriptor. |
long |
getCurrentAsfChunkSize()
This method calculates the total amount of bytes, the chunk would consume in an ASF file. |
int |
getDescriptorCount()
|
java.util.List<ContentDescriptor> |
getDescriptors()
Returns a list of all ContentDescriptorobjects stored in
this extended content description. |
java.util.List<ContentDescriptor> |
getDescriptors(java.lang.String name)
Returns a previously inserted content descriptors. |
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. |
java.util.List<ContentDescriptor> |
remove(java.lang.String id)
This method removes the content descriptor with the given name. |
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 ExtendedContentDescription()
public ExtendedContentDescription(java.math.BigInteger chunkLen)
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 boolean containsDescriptor(java.lang.String fieldName)
fieldName is already contained in this descriptor.
fieldName - name of the field to look for.
true if a descriptor with the name is contained.public long getCurrentAsfChunkSize()
getCurrentAsfChunkSize in interface WriteableChunkpublic int getDescriptorCount()
public java.util.List<ContentDescriptor> getDescriptors()
ContentDescriptorobjects stored in
this extended content description.
ContentDescriptorobjects.public java.util.List<ContentDescriptor> getDescriptors(java.lang.String name)
name - name of the content descriptor.
null if not present.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 java.util.List<ContentDescriptor> remove(java.lang.String id)
id - The id (name) of the descriptor which should be removed.
null.
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 | |||||||||