entagged.audioformats.asf.util
Class TagConverter

java.lang.Object
  extended by entagged.audioformats.asf.util.TagConverter

public class TagConverter
extends Object

This class provides functionality to convert AsfHeaderobjects into Tagobjects (More extract information and create a GenericTag).

Author:
Christian Laireiter (liree)

Constructor Summary
TagConverter()
           
 
Method Summary
static void assignCommonTagValues(Tag tag, ExtendedContentDescription description)
          This method assigns those tags of tag which are defined to be common by entagged.
static void assignOptionalTagValues(Tag tag, ExtendedContentDescription descriptor)
          This method will add or replace all values of tag are not defined as common by entagged.
static ContentDescription createContentDescription(Tag tag)
          This method creates a new ContentDescriptionobject, filled with the according values of the given tag.
Warning :
Only the first values can be stored in asf files, because the content description is limited.
static ExtendedContentDescription createExtendedContentDescription(Tag tag)
          This method creates a new ExtendedContentDescriptionobject filled with the values of the given tag.
Since extended content description of asf files can store name-value pairs, nearly each TagFieldcan be stored whithin.
static Tag createTagOf(AsfHeader source)
          This method creates a Tagand fills it with the contents of the given AsfHeader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagConverter

public TagConverter()
Method Detail

assignCommonTagValues

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

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

,
,
,

assignOptionalTagValues

public static void assignOptionalTagValues(Tag tag,
                                           ExtendedContentDescription descriptor)
This method will add or replace all values of tag are not defined as common by entagged.

Parameters:
tag - The tag containing the values.
descriptor - the extended content description.

createContentDescription

public static ContentDescription createContentDescription(Tag tag)
This method creates a new ContentDescriptionobject, filled with the according values of the given tag.
Warning :
Only the first values can be stored in asf files, because the content description is limited.

Parameters:
tag - The tag from which the values are taken.
Returns:
A new content description object filled with tag.
See Also:

,
,

createExtendedContentDescription

public static ExtendedContentDescription createExtendedContentDescription(Tag tag)
This method creates a new ExtendedContentDescriptionobject filled with the values of the given tag.
Since extended content description of asf files can store name-value pairs, nearly each TagFieldcan be stored whithin.
One constraint is that the strings must be convertable to "UTF-16LE" encoding and don't exceed a length of 65533 in binary representation.

Parameters:
tag - The tag whose values the result will be filled with.
Returns:
A new extended content description object.

createTagOf

public static Tag 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.


Copyright © 2007-2008. All Rights Reserved.