org.jaudiotagger.audio.asf.data.wrapper
Class ContentDescriptorTagField

java.lang.Object
  extended by org.jaudiotagger.audio.asf.data.wrapper.ContentDescriptorTagField
All Implemented Interfaces:
TagField

public class ContentDescriptorTagField
extends java.lang.Object
implements TagField

This class encapsulates a entagged.audioformats.asf.data.ContentDescriptorand provides access to it.
The content descriptor used for construction is copied.

Author:
Christian Laireiter (liree)

Constructor Summary
ContentDescriptorTagField(ContentDescriptor source)
          Creates an instance.
 
Method Summary
 void copyContent(TagField field)
          (overridden)
 java.lang.String getId()
          (overridden)
 byte[] getRawContent()
          (overridden)
 boolean isBinary()
          (overridden)
 void isBinary(boolean b)
          (overridden)
 boolean isCommon()
          (overridden)
 boolean isEmpty()
          (overridden)
 java.lang.String toString()
          (overridden)
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ContentDescriptorTagField

public ContentDescriptorTagField(ContentDescriptor source)
Creates an instance.

Parameters:
source - The descriptor which should be represented as a TagField.
Method Detail

copyContent

public void copyContent(TagField field)
(overridden)

Specified by:
copyContent in interface TagField
Parameters:
field - The field containing the data to be taken.
See Also:
entagged.audioformats.generic.TagField#copyContent(entagged.audioformats.generic.TagField)

getId

public java.lang.String getId()
(overridden)

Specified by:
getId in interface TagField
Returns:
Unique identifier for the fields type. (title, artist...)
See Also:
entagged.audioformats.generic.TagField#getId()

getRawContent

public byte[] getRawContent()
                     throws java.io.UnsupportedEncodingException
(overridden)

Specified by:
getRawContent in interface TagField
Returns:
Binary data representing the current tag field.
Throws:
java.io.UnsupportedEncodingException - Most tag data represents text. In some cases the underlying implementation will need to convert the text data in java to a specific charset encoding. In these cases an UnsupportedEncodingException may occur.
See Also:
entagged.audioformats.generic.TagField#getRawContent()

isBinary

public boolean isBinary()
(overridden)

Specified by:
isBinary in interface TagField
Returns:
true if field represents binary data (not human readable).
See Also:
entagged.audioformats.generic.TagField#isBinary()

isBinary

public void isBinary(boolean b)
(overridden)

Specified by:
isBinary in interface TagField
Parameters:
b - true, if the field contains binary data.
See Also:
entagged.audioformats.generic.TagField#isBinary(boolean)

isCommon

public boolean isCommon()
(overridden)

Specified by:
isCommon in interface TagField
Returns:
true if the field is of common use.
See Also:
entagged.audioformats.generic.TagField#isCommon()

isEmpty

public boolean isEmpty()
(overridden)

Specified by:
isEmpty in interface TagField
Returns:
true if no data is stored (or empty String).
See Also:
entagged.audioformats.generic.TagField#isEmpty()

toString

public java.lang.String toString()
(overridden)

Specified by:
toString in interface TagField
Overrides:
toString in class java.lang.Object
Returns:
Description of the fields content.
See Also:
entagged.audioformats.generic.TagField#toString()