com.groupdocs.metadata.legacy

Interfaces

Classes

Exceptions

com.groupdocs.metadata.legacy

Class TorrentFormat

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

    Deprecated.

    @Deprecated
    public final class TorrentFormat
    extends FormatBase

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

    • Constructor Detail

      • TorrentFormat

        public TorrentFormat(String fileName)
        Deprecated. 

        Initializes a new instance of the TorrentFormat class.

        Parameters:
        fileName - A string that contains the full name of the file from which to create a TorrentFormat instance.
      • TorrentFormat

        public TorrentFormat(InputStream input)
        Deprecated. 

        Initializes a new instance of the TorrentFormat class.

        Parameters:
        input - A stream that contains the data for this TorrentFormat.
    • Method Detail

      • getType

        public int getType()
        Deprecated. 

        Gets the type of the loaded file.

        Specified by:
        getType in class FormatBase
        Returns:
        The type of the loaded file.
      • getTorrentInfo

        public final TorrentMetadata getTorrentInfo()
        Deprecated. 

        Gets the torrent file metadata.

        Returns:
        The torrent file metadata.
      • cleanMetadata

        public void cleanMetadata()
        Deprecated. 

        Removes writable metadata properties associated with the file.


        This feature is not supported in trial mode.

        Overrides:
        cleanMetadata in class FormatBase
      • dispose

        protected void dispose(boolean disposing)
        Deprecated. 

        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.