Package com.mpatric.mp3agic
Class ID3v24Tag
java.lang.Object
com.mpatric.mp3agic.AbstractID3v2Tag
com.mpatric.mp3agic.ID3v24Tag
public class ID3v24Tag extends AbstractID3v2Tag
-
Field Summary
Fields Modifier and Type Field Description static String
ID_RECTIME
static String
VERSION
Fields inherited from class com.mpatric.mp3agic.AbstractID3v2Tag
compression, COMPRESSION_BIT, DATA_LENGTH_OFFSET, experimental, EXPERIMENTAL_BIT, EXTENDED_HEADER_BIT, extendedHeader, FLAGS_OFFSET, footer, FOOTER_BIT, FOOTER_LENGTH, FOOTER_TAG, HEADER_LENGTH, ID_ALBUM, ID_ALBUM_ARTIST, ID_ALBUM_ARTIST_OBSELETE, ID_ALBUM_OBSELETE, ID_ARTIST, ID_ARTIST_OBSELETE, ID_ARTIST_URL, ID_AUDIOFILE_URL, ID_AUDIOSOURCE_URL, ID_BPM, ID_BPM_OBSELETE, ID_CHAPTER, ID_CHAPTER_TOC, ID_COMMENT, ID_COMMENT_OBSELETE, ID_COMMERCIAL_URL, ID_COMPILATION, ID_COMPILATION_OBSELETE, ID_COMPOSER, ID_COMPOSER_OBSELETE, ID_COPYRIGHT, ID_COPYRIGHT_OBSELETE, ID_COPYRIGHT_URL, ID_DATE, ID_DATE_OBSELETE, ID_ENCODER, ID_ENCODER_OBSELETE, ID_GENRE, ID_GENRE_OBSELETE, ID_GROUPING, ID_GROUPING_OBSELETE, ID_IMAGE, ID_IMAGE_OBSELETE, ID_KEY, ID_KEY_OBSELETE, ID_ORIGINAL_ARTIST, ID_ORIGINAL_ARTIST_OBSELETE, ID_PART_OF_SET, ID_PART_OF_SET_OBSELETE, ID_PAYMENT_URL, ID_PUBLISHER, ID_PUBLISHER_OBSELETE, ID_PUBLISHER_URL, ID_RADIOSTATION_URL, ID_RATING, ID_TEXT_LYRICS, ID_TITLE, ID_TITLE_OBSELETE, ID_TRACK, ID_TRACK_OBSELETE, ID_URL, ID_URL_OBSELETE, ID_YEAR, ID_YEAR_OBSELETE, MAJOR_VERSION_OFFSET, MINOR_VERSION_OFFSET, padding, PADDING_LENGTH, PICTURETYPE_32PXICON, PICTURETYPE_ARTIST, PICTURETYPE_BACKCOVER, PICTURETYPE_BAND, PICTURETYPE_BAND_LOGOTYPE, PICTURETYPE_COMPOSER, PICTURETYPE_CONDUCTOR, PICTURETYPE_DURING_PERFORMANCE, PICTURETYPE_DURING_RECORDING, PICTURETYPE_FRONTCOVER, PICTURETYPE_ILLUSTRATION, PICTURETYPE_LEADARTIST, PICTURETYPE_LEAFLET, PICTURETYPE_LYRICIST, PICTURETYPE_MEDIA, PICTURETYPE_OTHER, PICTURETYPE_OTHERICON, PICTURETYPE_PUBLISHER_LOGOTYPE, PICTURETYPE_RECORDINGLOCATION, PICTURETYPE_SCREEN_CAPTURE, TAG, unsynchronisation, UNSYNCHRONISATION_BIT, version
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description protected ID3v2Frame
createFrame(byte[] buffer, int currentOffset)
protected ID3v2Frame
createFrame(String id, byte[] data)
String
getRecordingTime()
protected void
packFlags(byte[] bytes, int offset)
void
setGenreDescription(String text)
Set genre from text.void
setRecordingTime(String recTime)
protected void
unpackFlags(byte[] buffer)
protected boolean
useFrameUnsynchronisation()
Methods inherited from class com.mpatric.mp3agic.AbstractID3v2Tag
addFrame, clearAlbumImage, clearFrameSet, equals, extractGenreDescription, extractGenreNumber, extractLyricsFrameData, extractTextFrameData, getAlbum, getAlbumArtist, getAlbumImage, getAlbumImageMimeType, getArtist, getArtistUrl, getAudiofileUrl, getAudioSourceUrl, getBPM, getChapters, getChapterTOC, getComment, getCommercialUrl, getComposer, getCopyright, getCopyrightUrl, getDataLength, getDate, getEncoder, getFrameSets, getGenre, getGenreDescription, getGrouping, getItunesComment, getKey, getLength, getLyrics, getObseleteFormat, getOriginalArtist, getPadding, getPartOfSet, getPaymentUrl, getPublisher, getPublisherUrl, getRadiostationUrl, getTitle, getTrack, getUrl, getVersion, getWmpRating, getYear, hasFooter, hasUnsynchronisation, invalidateDataLength, isCompilation, packFrames, packTag, setAlbum, setAlbumArtist, setAlbumImage, setAlbumImage, setArtist, setArtistUrl, setAudiofileUrl, setAudioSourceUrl, setBPM, setChapters, setChapterTOC, setComment, setCommercialUrl, setCompilation, setComposer, setCopyright, setCopyrightUrl, setDate, setEncoder, setFooter, setGenre, setGrouping, setItunesComment, setKey, setLyrics, setOriginalArtist, setPadding, setPartOfSet, setPaymentUrl, setPublisher, setPublisherUrl, setRadiostationUrl, setTitle, setTrack, setUnsynchronisation, setUrl, setWmpRating, setYear, toBytes, unpackFrames
-
Field Details
-
VERSION
- See Also:
- Constant Field Values
-
ID_RECTIME
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ID3v24Tag
public ID3v24Tag() -
ID3v24Tag
public ID3v24Tag(byte[] buffer) throws NoSuchTagException, UnsupportedTagException, InvalidDataException
-
-
Method Details
-
unpackFlags
protected void unpackFlags(byte[] buffer)- Specified by:
unpackFlags
in classAbstractID3v2Tag
-
packFlags
protected void packFlags(byte[] bytes, int offset)- Specified by:
packFlags
in classAbstractID3v2Tag
-
useFrameUnsynchronisation
protected boolean useFrameUnsynchronisation()- Overrides:
useFrameUnsynchronisation
in classAbstractID3v2Tag
-
createFrame
- Overrides:
createFrame
in classAbstractID3v2Tag
- Throws:
InvalidDataException
-
createFrame
- Overrides:
createFrame
in classAbstractID3v2Tag
-
setGenreDescription
Description copied from interface:ID3v2
Set genre from text. This method behaves different depending on the ID3 version. Prior to ID3v2.4, the provided text must match a id3v1 genre description. With ID3v2.4, the genre is written as free text.- Specified by:
setGenreDescription
in interfaceID3v2
- Overrides:
setGenreDescription
in classAbstractID3v2Tag
- Parameters:
text
- genre string
-
getRecordingTime
-
setRecordingTime
-