com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class Id3v1Tag



  • public final class Id3v1Tag
    extends Id3Tag

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


    ID3(v1) tag is a small chunk of extra data in the end of MP3. See more http://id3.org/ID3v1.

    • Constructor Detail

      • Id3v1Tag

        public Id3v1Tag()

        Initializes a new instance of the Id3v1Tag class.

    • Method Detail

      • getVersion

        public String getVersion()

        Gets the ID3 version. It can be ID3 or ID3v1.1

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

        public final String getArtist()

        Gets the artist. Maximum length is 30 characters.

        Returns:
        The artist.
      • setArtist

        public final void setArtist(String value)

        Sets the artist. Maximum length is 30 characters.

        Parameters:
        value - The artist.
      • getAlbum

        public final String getAlbum()

        Gets the album. Maximum length is 30 characters.

        Returns:
        The album.
      • setAlbum

        public final void setAlbum(String value)

        Sets the album. Maximum length is 30 characters.

        Parameters:
        value - The album.
      • getGenreId

        public final int getGenreId()

        Gets the genre identifier. Full list of genres: http://id3.org/id3v2.3.0#Appendix_A_-_Genre_List_from_ID3v1.

        Returns:
        The genre identifier.
      • setGenreId

        public final void setGenreId(int value)

        Sets the genre identifier. Full list of genres: http://id3.org/id3v2.3.0#Appendix_A_-_Genre_List_from_ID3v1.

        Parameters:
        value - The genre identifier.
      • getGenre

        public final String getGenre()

        Gets the genre string based on GenreId, for example: Pop.

        Returns:
        The genre.
      • getComment

        public final String getComment()

        Gets the comment. Maximum length is 30 characters.

        Returns:
        The comment.
      • setComment

        public final void setComment(String value)

        Sets the comment. Maximum length is 30 characters.

        Parameters:
        value - The comment.
      • getTitle

        public final String getTitle()

        Gets the title.

        Returns:
        The title.
      • setTitle

        public final void setTitle(String value)

        Sets the title.

        Parameters:
        value - The title.
      • getYear

        public final String getYear()

        Gets the year. Maximum length is 4 characters.

        Returns:
        The year.
      • setYear

        public final void setYear(String value)

        Sets the year. Maximum length is 4 characters.

        Parameters:
        value - The year.
      • getTrackNumber

        public final Integer getTrackNumber()

        Gets the track number. Presented in ID3v1.1 tag only.

        Returns:
        The track number.


        If value of TrackNumber is positive integer then ID3 changes version to 'ID3v1.1' automatically.

      • setTrackNumber

        public final void setTrackNumber(Integer value)

        Sets the track number. Presented in ID3v1.1 tag only.

        Parameters:
        value - The track number.


        If value of TrackNumber is positive integer then ID3 changes version to 'ID3v1.1' automatically.