FrameBodyTORYpublic class FrameBodyTORY extends AbstractFrameBodyTextInfo implements ID3v23FrameBodyOriginal 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:
|
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.
super(textEncoding, text);
| public FrameBodyTORY(FrameBodyTDOR body)When converting v4 TDOR to v3 TORY frame
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.
super(byteBuffer, frameSize);
|
Methods Summary |
---|
public java.lang.String | getIdentifier()The ID3v2 frame identifier
return ID3v23Frames.FRAME_ID_V3_TORY;
|
|