com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class Id3v2Tag



  • public final class Id3v2Tag
    extends Id3Tag

    Represents ID3v2 tag. See more https://en.wikipedia.org/wiki/ID3#ID3v2.


    Apart from Id3v1Tag it allows to store more amount of metadata. <br></br> Each metadata chunk is presented as tag frame TagFrame.

    • Constructor Detail

      • Id3v2Tag

        public Id3v2Tag()

        Initializes a new instance of the Id3v2Tag class.

    • Method Detail

      • getVersion

        public String getVersion()

        Gets the ID3 version.

        Specified by:
        getVersion in class Id3Tag
        Returns:
        The ID3 version.
      • getTagSize

        public final int getTagSize()

        Gets the size of the tag.

        Returns:
        The size of the tag.
      • getAlbum

        public final String getAlbum()

        Gets the album. Represents TALB tag.

        Returns:
        The album.
      • setAlbum

        public final void setAlbum(String value)

        Sets the album. Represents TALB tag.

        Parameters:
        value - The album.
      • getArtist

        public final String getArtist()

        Gets the artist. Represents TPE1 tag.

        Returns:
        The artist.
      • setArtist

        public final void setArtist(String value)

        Sets the artist. Represents TPE1 tag.

        Parameters:
        value - The artist.
      • getBand

        public final String getBand()

        Gets the band. Represents TPE2 tag.

        Returns:
        The band.
      • setBand

        public final void setBand(String value)

        Sets the band. Represents TPE2 tag.

        Parameters:
        value - The band.
      • getBitsPerMinute

        public final String getBitsPerMinute()

        Gets the bits per minute. Represents TBPM tag.

        Returns:
        The bits per minute.
      • setBitsPerMinute

        public final void setBitsPerMinute(String value)

        Sets the bits per minute. Represents TBPM tag.

        Parameters:
        value - The bits per minute.
      • getComment

        public final String getComment()

        Gets the comment. Represents COMM tag.

        Returns:
        The comment.
      • setComment

        public final void setComment(String value)

        Sets the comment. Represents COMM tag.

        Parameters:
        value - The comment.
      • getComposers

        public final String getComposers()

        Gets the composers. Represents TCOM tag.

        Returns:
        The composers.
      • setComposers

        public final void setComposers(String value)

        Sets the composers. Represents TCOM tag.

        Parameters:
        value - The composers.
      • getContentType

        public final String getContentType()

        Gets content type. Represents TCON tag.

        Returns:
        Content type.
      • setContentType

        public final void setContentType(String value)

        Sets content type. Represents TCON tag.

        Parameters:
        value - Content type.
      • getCopyright

        public final String getCopyright()

        Gets the copyright. Represents TCOP tag.

        Returns:
        The copyright.


        Every time this field is displayed the field must be preceded with "Copyright ?? ".

      • setCopyright

        public final void setCopyright(String value)

        Sets the copyright. Represents TCOP tag.

        Parameters:
        value - The copyright.


        Every time this field is displayed the field must be preceded with "Copyright ?? ".

      • getDate

        public final String getDate()

        Gets the date. Represents TDAT tag. This field is always four characters long.

        Returns:
        The date.


        This field is always four characters long.

      • getEncodedBy

        public final String getEncodedBy()

        Gets the encoded by. Represents TENC tag.

        Returns:
        The encoded by.
      • setEncodedBy

        public final void setEncodedBy(String value)

        Sets the encoded by. Represents TENC tag.

        Parameters:
        value - The encoded by.
      • getPublisher

        public final String getPublisher()

        Gets the publisher. Represents TPUB tag.

        Returns:
        The publisher.
      • setPublisher

        public final void setPublisher(String value)

        Sets the publisher. Represents TPUB tag.

        Parameters:
        value - The publisher.
      • getTime

        public final String getTime()

        Gets the time. Represents TIME tag. It has HHMM format.

        Returns:
        The time.
      • setTime

        public final void setTime(String value)

        Sets the time. Represents TIME tag. It has HHMM format.

        Parameters:
        value - The time.
      • getTitle

        public final String getTitle()

        Gets the title. Represents TIT2 tag.

        Returns:
        The title.
      • setTitle

        public final void setTitle(String value)

        Sets the title. Represents TIT2 tag.

        Parameters:
        value - The title.
      • getSubtitle

        public final String getSubtitle()

        Gets the subtitle. Represents TIT3 tag.

        Returns:
        The subtitle.
      • setSubtitle

        public final void setSubtitle(String value)

        Sets the subtitle. Represents TIT3 tag.

        Parameters:
        value - The subtitle.
      • getMusicalKey

        public final String getMusicalKey()

        Gets the musical key. Represents TKEY tag.

        Returns:
        The musical key.
      • setMusicalKey

        public final void setMusicalKey(String value)

        Sets the musical key. Represents TKEY tag.

        Parameters:
        value - The musical key.
      • getLengthInMilliseconds

        public final String getLengthInMilliseconds()

        Gets the length in milliseconds. Represents TLEN tag.

        Returns:
        The length in milliseconds.
      • setLengthInMilliseconds

        public final void setLengthInMilliseconds(String value)

        Sets the length in milliseconds. Represents TLEN tag.

        Parameters:
        value - The length in milliseconds.
      • getOriginalAlbum

        public final String getOriginalAlbum()

        Gets the original album. Represents TOAL tag.

        Returns:
        The original album.
      • setOriginalAlbum

        public final void setOriginalAlbum(String value)

        Sets the original album. Represents TOAL tag.

        Parameters:
        value - The original album.
      • getTrackNumber

        public final String getTrackNumber()

        Gets the track number. Represents TRCK tag.

        Returns:
        The track number.
      • setTrackNumber

        public final void setTrackNumber(String value)

        Sets the track number. Represents TRCK tag.

        Parameters:
        value - The track number.
      • getSizeInBytes

        public final String getSizeInBytes()

        Gets the size in bytes. Represents TSIZ tag.

        Returns:
        The size in bytes.
      • setSizeInBytes

        public final void setSizeInBytes(String value)

        Sets the size in bytes. Represents TSIZ tag.

        Parameters:
        value - The size in bytes.
      • getISRC

        public final String getISRC()

        Gets the ISRC. Represents TSRC tag.

        Returns:
        The ISRC.
      • setISRC

        public final void setISRC(String value)

        Sets the ISRC. Represents TSRC tag.

        Parameters:
        value - The ISRC.
      • getSoftwareHardware

        public final String getSoftwareHardware()

        Gets the software/hardware. Represents TSSE tag.

        Returns:
        The software/hardware.
      • setSoftwareHardware

        public final void setSoftwareHardware(String value)

        Sets the software/hardware. Represents TSSE tag.

        Parameters:
        value - The software/hardware.
      • getYear

        public final String getYear()

        Gets the year. Represents TYER tag. Has always four characters long (until the year 10000).

        Returns:
        The year.
      • setYear

        public final void setYear(String value)

        Sets the year. Represents TYER tag. Has always four characters long (until the year 10000).

        Parameters:
        value - The year.
      • getImageCover

        public final byte[] getImageCover()

        Gets the image cover bytes.

        Returns:
        The image cover.
      • setImageCover

        public final void setImageCover(byte[] value)

        Sets the image cover bytes.

        Parameters:
        value - The image cover.
      • getPlayCounter

        public final Integer getPlayCounter()

        Gets the play counter. Represents PCNT tag.

        Returns:
        The play counter.
      • getFrames

        public final TagFrame[] getFrames()

        Gets array of TagFrame presented in ID3v2 tag.

        Returns:
        The frames.
      • removeImageCover

        public final void removeImageCover()

        Removes the image cover data in APIC tag.


        This feature is not available in trial mode.

      • readThumbnail

        public final ThumbnailMetadata readThumbnail()

        Reads the image cover data from APIC tag.

        Returns:
        ThumbnailMetadata.