org.jaudiotagger.tag.datatype
Class AbstractString
java.lang.Object
org.jaudiotagger.tag.datatype.AbstractDataType
org.jaudiotagger.tag.datatype.AbstractString
- Direct Known Subclasses:
- StringFixedLength, TextEncodedStringNullTerminated, TextEncodedStringSizeTerminated
public abstract class AbstractString
- extends AbstractDataType
A partial implementation for String based ID3 fields
Method Summary |
boolean |
canBeEncoded()
Check the value can be encoded with the specified encoding |
int |
getSize()
Return the size in bytes of this datatype as it was/is held in file this
will be effected by the encoding type. |
java.lang.String |
toString()
Return String representation of datatype |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractString
public AbstractString(java.lang.String identifier,
AbstractTagFrameBody frameBody,
java.lang.String value)
- Creates a new datatype, with value
- Parameters:
identifier
- frameBody
-
getSize
public int getSize()
- Return the size in bytes of this datatype as it was/is held in file this
will be effected by the encoding type.
- Specified by:
getSize
in class AbstractDataType
- Returns:
- the size
toString
public java.lang.String toString()
- Return String representation of datatype
- Overrides:
toString
in class java.lang.Object
- Returns:
- a string representation of the value
canBeEncoded
public boolean canBeEncoded()
- Check the value can be encoded with the specified encoding