org.jaudiotagger.audio.asf.tag
Class AsfTagTextField

java.lang.Object
  extended by org.jaudiotagger.audio.asf.tag.AsfTagField
      extended by org.jaudiotagger.audio.asf.tag.AsfTagTextField
All Implemented Interfaces:
java.lang.Cloneable, TagField, TagTextField

public class AsfTagTextField
extends AsfTagField
implements TagTextField

Represents a tag text field for ASF fields.

Author:
Christian Laireiter

Field Summary
 
Fields inherited from class org.jaudiotagger.audio.asf.tag.AsfTagField
toWrap
 
Constructor Summary
AsfTagTextField(AsfFieldKey field, java.lang.String value)
          Creates a tag text field and assigns the string value.
AsfTagTextField(MetadataDescriptor source)
          Creates an instance.
AsfTagTextField(java.lang.String fieldKey, java.lang.String value)
          Creates a tag text field and assigns the string value.
 
Method Summary
 java.lang.String getContent()
          Returns the content of the field.
 java.lang.String getEncoding()
          Returns the current used charset encoding.
 boolean isEmpty()
          Determines whether the content of the field is empty.
 void setContent(java.lang.String content)
          Sets the content of the field.
 void setEncoding(java.lang.String encoding)
          Sets the charset encoding used by the field.
 
Methods inherited from class org.jaudiotagger.audio.asf.tag.AsfTagField
clone, copyContent, getDescriptor, getId, getRawContent, isBinary, isBinary, isCommon, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jaudiotagger.tag.TagField
copyContent, getId, getRawContent, isBinary, isBinary, isCommon, toString
 

Constructor Detail

AsfTagTextField

public AsfTagTextField(AsfFieldKey field,
                       java.lang.String value)
Creates a tag text field and assigns the string value.

Parameters:
field - ASF field to represent.
value - the value to assign.

AsfTagTextField

public AsfTagTextField(MetadataDescriptor source)
Creates an instance.

Parameters:
source - The metadata descriptor, whose content is published.
Must not be of type MetadataDescriptor.TYPE_BINARY.

AsfTagTextField

public AsfTagTextField(java.lang.String fieldKey,
                       java.lang.String value)
Creates a tag text field and assigns the string value.

Parameters:
fieldKey - The fields identifier.
value - the value to assign.
Method Detail

getContent

public java.lang.String getContent()
Returns the content of the field.

Specified by:
getContent in interface TagTextField
Returns:
Content

getEncoding

public java.lang.String getEncoding()
Returns the current used charset encoding.

Specified by:
getEncoding in interface TagTextField
Returns:
Charset encoding.

isEmpty

public boolean isEmpty()
Description copied from class: AsfTagField
Determines whether the content of the field is empty.

Specified by:
isEmpty in interface TagField
Overrides:
isEmpty in class AsfTagField
Returns:
true if blank or only contains whitespace

setContent

public void setContent(java.lang.String content)
Sets the content of the field.

Specified by:
setContent in interface TagTextField
Parameters:
content - fields content.

setEncoding

public void setEncoding(java.lang.String encoding)
Sets the charset encoding used by the field.

Specified by:
setEncoding in interface TagTextField
Parameters:
encoding - charset.