FileDocCategorySizeDatePackage
FrameBodyTORY.javaAPI DocJaudiotagger 2.0.43341Wed Mar 30 16:12:02 BST 2011org.jaudiotagger.tag.id3.framebody

FrameBodyTORY

public class FrameBodyTORY extends AbstractFrameBodyTextInfo implements ID3v23FrameBody
Original release year Text information frame.

The 'Original release year' frame is intended for the year when the original recording, if for example the music in the file should be a cover of a previously released song, was released. The field is formatted as in the "TYER" frame.

For more details, please refer to the ID3 specifications:

author
: Paul Taylor
author
: Eric Farng
version
$Id: FrameBodyTORY.java 932 2010-11-26 13:13:15Z paultaylor $

Fields Summary
private static final int
NUMBER_OF_DIGITS_IN_YEAR
Constructors Summary
public FrameBodyTORY()
Creates a new FrameBodyTORY datatype.


              
     
    
    
public FrameBodyTORY(FrameBodyTORY body)

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

param
textEncoding
param
text

        super(textEncoding, text);
    
public FrameBodyTORY(FrameBodyTDOR body)
When converting v4 TDOR to v3 TORY frame

param
body

        setObjectValue(DataTypes.OBJ_TEXT_ENCODING, TextEncoding.ISO_8859_1);
        String year=body.getText();
        if(body.getText().length()> NUMBER_OF_DIGITS_IN_YEAR)
        {
            year=body.getText().substring(0, NUMBER_OF_DIGITS_IN_YEAR);
        }
        setObjectValue(DataTypes.OBJ_TEXT, year);
    
public FrameBodyTORY(ByteBuffer byteBuffer, int frameSize)
Creates a new FrameBodyTORY 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 ID3v23Frames.FRAME_ID_V3_TORY;