com.groupdocs.metadata

Interfaces

Classes

Exceptions

com.groupdocs.metadata

Class TorrentFileInfo

  • All Implemented Interfaces:
    IMetadataProperty


    public class TorrentFileInfo
    extends Object
    implements IMetadataProperty

    Represents shared file info.


    Contains detailed info about each file in torrent distribution.

    • Method Detail

      • getName

        public final String getName()

        Gets the full name of the file (relative path to the file from root torrent folder).

        Specified by:
        getName in interface IMetadataProperty
        Returns:
        The full name of the file (relative path to the file from root torrent folder).
      • setName

        public final void setName(String value)

        Sets the full name of the file (relative path to the file from root torrent folder).

        Specified by:
        setName in interface IMetadataProperty
        Parameters:
        value - The full name of the file (relative path to the file from root torrent folder).
      • getLength

        public final long getLength()

        Gets the length of the file in bytes.

        Returns:
        The length of the file in bytes.
      • getFormattedValue

        public final String getFormattedValue()

        Gets the formatted value.

        Specified by:
        getFormattedValue in interface IMetadataProperty
        Returns:
        String value contained metadata property value in readable format.
      • toString

        public String toString()

        Returns a System.String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A System.String that represents this instance.