org.jaudiotagger.audio.asf.util
Class TagConverter

java.lang.Object
  extended by org.jaudiotagger.audio.asf.util.TagConverter

public final class TagConverter
extends java.lang.Object

This class provides functionality to convert AsfHeaderobjects into Tagobjects.

Author:
Christian Laireiter (liree)

Constructor Summary
private TagConverter()
          Hidden utility class constructor.
 
Method Summary
static void assignCommonTagValues(Tag tag, MetadataContainer description)
          This method assigns those tags of tag which are defined to be common by jaudiotagger.
static AsfTag createTagOf(AsfHeader source)
          This method creates a Tagand fills it with the contents of the given AsfHeader.
static MetadataContainer[] distributeMetadata(AsfTag tag)
          This method distributes the tags fields among the ContainerType.getOrdered() containers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagConverter

private TagConverter()
Hidden utility class constructor.

Method Detail

assignCommonTagValues

public static void assignCommonTagValues(Tag tag,
                                         MetadataContainer description)
This method assigns those tags of tag which are defined to be common by jaudiotagger.

Parameters:
tag - The tag from which the values are gathered.
Assigned values are:
description - The extended content description which should receive the values.
Warning: the common values will be replaced.

createTagOf

public static AsfTag createTagOf(AsfHeader source)
This method creates a Tagand fills it with the contents of the given AsfHeader.

Parameters:
source - The ASF header which contains the information.
Returns:
A Tag with all its values.

distributeMetadata

public static MetadataContainer[] distributeMetadata(AsfTag tag)
This method distributes the tags fields among the ContainerType.getOrdered() containers.

Parameters:
tag - the tag with the fields to distribute.
Returns:
distribution