|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
entagged.audioformats.asf.util
Class TagConverter
java.lang.Objectentagged.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).
| 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. |
static ExtendedContentDescription |
createExtendedContentDescription(Tag tag)
This method creates a new ExtendedContentDescriptionobject
filled with the values of the given tag. |
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
tagwhich are defined to be common by entagged.
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 giventag.
Warning :
Only the first values can be stored in asf files, because the content description is limited.
createExtendedContentDescription
public static ExtendedContentDescription createExtendedContentDescription(Tag tag)
- This method creates a new
ExtendedContentDescriptionobject filled with the values of the giventag.
Since extended content description of asf files can store name-value pairs, nearly eachTagFieldcan 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 givenAsfHeader.
- Parameters:
source- The asf header which contains the information.
- Returns:
- A Tag with all its values.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2007-2011 shredzone.org. All Rights Reserved.
entagged.audioformats.asf.util.TagConverter