com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class TorrentMetadata



  • public final class TorrentMetadata
    extends MetadataContainer

    Represents torrent descriptor file metadata.

    • Method Detail

      • getAnnounce

        public final String getAnnounce()

        Gets the URL of the tracker.

        Returns:
        The the URL of the tracker.
      • setAnnounce

        public final void setAnnounce(String value)

        Sets the URL of the tracker.

        Parameters:
        value - The the URL of the tracker.
      • getComment

        public final String getComment()

        Gets the author's comment.

        Returns:
        The author's comment.
      • setComment

        public final void setComment(String value)

        Sets the author's comment.

        Parameters:
        value - The author's comment.
      • getCreationDate

        public final Date getCreationDate()

        Gets or sets the creation date of the torrent.

        Returns:
        The creation date of the torrent.
      • setCreationDate

        public final void setCreationDate(Date value)

        Sets the creation date of the torrent.

        Parameters:
        value - The creation date of the torrent.
      • getCreatedBy

        public final String getCreatedBy()

        Gets the name and version of the program used to create the torrent.

        Returns:
        The name and version of the program used to create the torrent.
      • setCreatedBy

        public final void setCreatedBy(String value)

        Sets the name and version of the program used to create the torrent.

        Parameters:
        value - The name and version of the program used to create the torrent.
      • getSharedFiles

        public final TorrentFileInfo[] getSharedFiles()

        Gets the name and version of the program used to create the torrent.

        Returns:
        The name and version of the program used to create the torrent.
      • getPieceLength

        public final long getPieceLength()

        Gets the number of bytes in each piece.

        Returns:
        The the number of bytes in each piece.
      • getPieces

        public final byte[] getPieces()

        Gets a byte array consisting of the concatenation of all 20-byte SHA1 hash values, one per piece.

        Returns:
        A byte array consisting of the concatenation of all 20-byte SHA1 hash values, one per piece.