com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class TorrentFormat

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, Closeable, AutoCloseable


    public final class TorrentFormat
    extends FormatBase

    Represents torrent format. See more: https://en.wikipedia.org/wiki/Torrent_file.

    See Also:
    FormatBase
    • Constructor Detail

      • TorrentFormat

        public TorrentFormat(String fileName)

        Initializes a new instance of the TorrentFormat class.

        Parameters:
        fileName - Absolute path to the file.
      • TorrentFormat

        public TorrentFormat(InputStream input)

        Initializes a new instance of the TorrentFormat class.

        Parameters:
        input - File stream.
    • Method Detail

      • getType

        public int getType()

        Gets document type.

        Specified by:
        getType in class FormatBase
        Returns:
        Document type.
      • getTorrentInfo

        public final TorrentMetadata getTorrentInfo()

        Gets common torrent information like author's comment, creation date etc.

        Returns:
        The torrent information.
      • cleanMetadata

        public void cleanMetadata()

        Removes torrent metadata.


        This feature is not supported in trial mode.

        Overrides:
        cleanMetadata in class FormatBase