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. 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.

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

        public final int getTagSize()

        Gets the size of the tag.

        Value: The size of the tag.
      • getAlbum

        public final String getAlbum()

        Gets or sets the album. Represents TALB tag.

        Value: The album.
      • setAlbum

        public final void setAlbum(String value)

        Gets or sets the album. Represents TALB tag.

        Value: The album.
      • getArtist

        public final String getArtist()

        Gets or sets the artist. Represents TPE1 tag.

        Value: The artist.
      • setArtist

        public final void setArtist(String value)

        Gets or sets the artist. Represents TPE1 tag.

        Value: The artist.
      • getBand

        public final String getBand()

        Gets or sets the band. Represents TPE2 tag.

        Value: The band.
      • setBand

        public final void setBand(String value)

        Gets or sets the band. Represents TPE2 tag.

        Value: The band.
      • getBitsPerMinute

        public final String getBitsPerMinute()

        Gets or sets the bits per minute. Represents TBPM tag.

        Value: The bits per minute.
      • setBitsPerMinute

        public final void setBitsPerMinute(String value)

        Gets or sets the bits per minute. Represents TBPM tag.

        Value: The bits per minute.
      • getComment

        public final String getComment()

        Gets or sets the comment. Represents COMM tag.

        Value: The comment.
      • setComment

        public final void setComment(String value)

        Gets or sets the comment. Represents COMM tag.

        Value: The comment.
      • getComposers

        public final String getComposers()

        Gets or sets the composers. Represents TCOM tag.

        Value: The composers.
      • setComposers

        public final void setComposers(String value)

        Gets or sets the composers. Represents TCOM tag.

        Value: The composers.
      • getContentType

        public final String getContentType()

        Gets or sets content type. Represents TCON tag.

        Value: Content type.
      • setContentType

        public final void setContentType(String value)

        Gets or sets content type. Represents TCON tag.

        Value: Content type.
      • getCopyright

        public final String getCopyright()

        Gets or sets the copyright. Represents TCOP tag.

        Value: The copyright.


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

      • setCopyright

        public final void setCopyright(String value)

        Gets or sets the copyright. Represents TCOP tag.

        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.

        Value: The date.


        This field is always four characters long.

      • getEncodedBy

        public final String getEncodedBy()

        Gets or sets the encoded by. Represents TENC tag.

        Value: The encoded by.
      • setEncodedBy

        public final void setEncodedBy(String value)

        Gets or sets the encoded by. Represents TENC tag.

        Value: The encoded by.
      • getPublisher

        public final String getPublisher()

        Gets or sets the publisher. Represents TPUB tag.

        Value: The publisher.
      • setPublisher

        public final void setPublisher(String value)

        Gets or sets the publisher. Represents TPUB tag.

        Value: The publisher.
      • getTime

        public final String getTime()

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

        Value: The time.
      • setTime

        public final void setTime(String value)

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

        Value: The time.
      • getTitle

        public final String getTitle()

        Gets or sets the title. Represents TIT2 tag.

        Value: The title.
      • setTitle

        public final void setTitle(String value)

        Gets or sets the title. Represents TIT2 tag.

        Value: The title.
      • getSubtitle

        public final String getSubtitle()

        Gets or sets the sub-title. Represents TIT3 tag.

        Value: The title.
      • setSubtitle

        public final void setSubtitle(String value)

        Gets or sets the sub-title. Represents TIT3 tag.

        Value: The title.
      • getMusicalKey

        public final String getMusicalKey()

        Gets or sets the musical key. Represents TKEY tag.

        Value: The musical key.
      • setMusicalKey

        public final void setMusicalKey(String value)

        Gets or sets the musical key. Represents TKEY tag.

        Value: The musical key.
      • getLengthInMilliseconds

        public final String getLengthInMilliseconds()

        Gets or sets the length in milliseconds. Represents TLEN tag.

        Value: The length in milliseconds.
      • setLengthInMilliseconds

        public final void setLengthInMilliseconds(String value)

        Gets or sets the length in milliseconds. Represents TLEN tag.

        Value: The length in milliseconds.
      • getOriginalAlbum

        public final String getOriginalAlbum()

        Gets or sets the original album. Represents TOAL tag.

        Value: The original album.
      • setOriginalAlbum

        public final void setOriginalAlbum(String value)

        Gets or sets the original album. Represents TOAL tag.

        Value: The original album.
      • getTrackNumber

        public final String getTrackNumber()

        Gets or sets the track number. Represents TRCK tag.

        Value: The track number.
      • setTrackNumber

        public final void setTrackNumber(String value)

        Gets or sets the track number. Represents TRCK tag.

        Value: The track number.
      • getSizeInBytes

        public final String getSizeInBytes()

        Gets the size in bytes.

        Value: The software/hardware.
      • setSizeInBytes

        public final void setSizeInBytes(String value)

        Sets the size in bytes.

        Value: The software/hardware.
      • getISRC

        public final String getISRC()

        Gets the ISRC.

        Value: The software/hardware.
      • setISRC

        public final void setISRC(String value)

        Sets the ISRC.

        Value: The software/hardware.
      • getSoftwareHardware

        public final String getSoftwareHardware()

        Gets or sets the software/hardware. Represents TSSE tag.

        Value: The software/hardware.
      • setSoftwareHardware

        public final void setSoftwareHardware(String value)

        Gets or sets the software/hardware. Represents TSSE tag.

        Value: The software/hardware.
      • getYear

        public final String getYear()

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

        Value: The year.
      • setYear

        public final void setYear(String value)

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

        Value: The year.
      • getImageCover

        public final byte[] getImageCover()

        Gets or sets the image cover bytes.

        Value: The image cover.
      • setImageCover

        public final void setImageCover(byte[] value)

        Gets or sets the image cover bytes.

        Value: The image cover.
      • getPlayCounter

        public final Integer getPlayCounter()

        Gets the play counter. Represents PCNT tag.

        Value: The play counter.
      • getFrames

        public final TagFrame[] getFrames()

        Gets array of TagFrame presented in ID3v2 tag.

        Value: The frames.
      • removeImageCover

        public final void removeImageCover()

        Removes the image cover data in APIC tag.


        This feature is not available in trial mode.