com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class TorrentMetadata

  • All Implemented Interfaces:
    Iterable<MetadataProperty>


    public final class TorrentMetadata
    extends MetadataContainer

    Represents torrent descriptor file metadata. Please find more information at <a href="https://en.wikipedia.org/wiki/Torrent_file">https://en.wikipedia.org/wiki/Torrent_file</a>.

    • Method Detail

      • getAnnounce

        public final String getAnnounce()

        Gets the URL of the tracker.

        Returns:
        The URL of the tracker.
      • setAnnounce

        public final void setAnnounce(String value)

        Sets the URL of the tracker.

        Parameters:
        value - 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 an array containing shared file information entries.

        Returns:
        An array containing shared file information entries.
      • getPieceLength

        public final long getPieceLength()

        Gets the number of bytes in each piece. For more information please see .

        Returns:
        The number of bytes in each piece.
        See Also:
        Pieces
      • 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.