FileDocCategorySizeDatePackage
FrameBodyTLAN.javaAPI DocJaudiotagger 2.0.43243Wed Mar 30 16:12:04 BST 2011org.jaudiotagger.tag.id3.framebody

FrameBodyTLAN

public class FrameBodyTLAN extends AbstractFrameBodyTextInfo implements ID3v24FrameBody, ID3v23FrameBody
Language(s) Text information frame.

The 'Language(s)' frame should contain the languages of the text or lyrics spoken or sung in the audio. The language is represented with three characters according to ISO-639-2. If more than one language is used in the text their language codes should follow according to their usage.

For more details, please refer to the ID3 specifications:

TODO:Although rare TLAN can actually return multiple language codes, at the moment they are all returned as a single string via getText(), any additional parsrsing has to be done externally.

author
: Paul Taylor
author
: Eric Farng
version
$Id: FrameBodyTLAN.java 832 2009-11-12 13:25:38Z paultaylor $

Fields Summary
Constructors Summary
public FrameBodyTLAN()
Creates a new FrameBodyTLAN datatype.

        super();
    
public FrameBodyTLAN(FrameBodyTLAN body)

        super(body);
    
public FrameBodyTLAN(byte textEncoding, String text)
Creates a new FrameBodyTLAN datatype.

param
textEncoding
param
text

        super(textEncoding, text);
    
public FrameBodyTLAN(ByteBuffer byteBuffer, int frameSize)
Creates a new FrameBodyTLAN datatype.

param
byteBuffer
param
frameSize
throws
InvalidTagException

        super(byteBuffer, frameSize);
    
Methods Summary
public java.lang.StringgetIdentifier()
The ID3v2 frame identifier

return
the ID3v2 frame identifier for this frame type

        return ID3v24Frames.FRAME_ID_LANGUAGE;
    
public booleanisValid()

return
true if text value is valid language code

        return Languages.getInstanceOf().getValueForId(getFirstTextValue())!=null;