org.jaudiotagger.tag.datatype
Class StringSizeTerminated

java.lang.Object
  extended by org.jaudiotagger.tag.datatype.AbstractDataType
      extended by org.jaudiotagger.tag.datatype.AbstractString
          extended by org.jaudiotagger.tag.datatype.TextEncodedStringSizeTerminated
              extended by org.jaudiotagger.tag.datatype.StringSizeTerminated
Direct Known Subclasses:
StringDateTime

public class StringSizeTerminated
extends TextEncodedStringSizeTerminated

Represents a String which is not delimited by null character with fixed text encoding.

This type of String will usually only be used when it is the last field within a frame, when reading the remainder of the byte array will be read, when writing the frame will accomodate the required size for the String. The String will be encoded using the default encoding regardless of what encoding may be specified in the framebody


Field Summary
 
Fields inherited from class org.jaudiotagger.tag.datatype.AbstractDataType
frameBody, identifier, logger, size, TYPE_ELEMENT, value
 
Constructor Summary
StringSizeTerminated(java.lang.String identifier, AbstractTagFrameBody frameBody)
          Creates a new ObjectStringSizeTerminated datatype.
StringSizeTerminated(StringSizeTerminated object)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
protected  java.lang.String getTextEncodingCharSet()
          Get the text encoding being used.
 
Methods inherited from class org.jaudiotagger.tag.datatype.TextEncodedStringSizeTerminated
addValue, getNumberOfValues, getValueAtIndex, readByteArray, writeByteArray
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractString
canBeEncoded, getSize, setSize, toString
 
Methods inherited from class org.jaudiotagger.tag.datatype.AbstractDataType
createStructure, getBody, getIdentifier, getValue, readByteArray, setBody, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringSizeTerminated

public StringSizeTerminated(java.lang.String identifier,
                            AbstractTagFrameBody frameBody)
Creates a new ObjectStringSizeTerminated datatype.

Parameters:
identifier - identifies the frame type
frameBody -

StringSizeTerminated

public StringSizeTerminated(StringSizeTerminated object)
Method Detail

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class TextEncodedStringSizeTerminated
Returns:
whether this and obj are deemed equivalent

getTextEncodingCharSet

protected java.lang.String getTextEncodingCharSet()
Description copied from class: TextEncodedStringSizeTerminated
Get the text encoding being used.

The text encoding is defined by the frame body that the text field belongs to.

Overrides:
getTextEncodingCharSet in class TextEncodedStringSizeTerminated
Returns:
the text encoding charset