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 the torrent format. Please see more at 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 the document type.

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

        public final TorrentMetadata getTorrentInfo()

        Gets the torrent file metadata.

        Returns:
        The torrent file metadata.
      • cleanMetadata

        public void cleanMetadata()

        Removes torrent metadata.


        This feature is not supported in trial mode.

        Overrides:
        cleanMetadata in class FormatBase
      • dispose

        protected void dispose(boolean disposing)

        Releases unmanaged and optionally managed resources.

        Overrides:
        dispose in class FormatBase
        Parameters:
        disposing - true to release both managed and unmanaged resources; false to release only unmanaged resources.