org.jaudiotagger.tag.datatype
Class StringSizeTerminated
java.lang.Object
org.jaudiotagger.tag.datatype.AbstractDataType
org.jaudiotagger.tag.datatype.AbstractString
org.jaudiotagger.tag.datatype.TextEncodedStringSizeTerminated
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
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
StringSizeTerminated
public StringSizeTerminated(java.lang.String identifier,
AbstractTagFrameBody frameBody)
- Creates a new ObjectStringSizeTerminated datatype.
- Parameters:
identifier
- identifies the frame typeframeBody
-
StringSizeTerminated
public StringSizeTerminated(StringSizeTerminated object)
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