java.lang.Object
org.klomp.snark.TorrentCreateFilter
All Implemented Interfaces:
Serializable

public class TorrentCreateFilterextends Object implements Serializable
A structure for torrent creation filters.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Pinned for serialized-form compatibility.
      See Also:
    • name

      public final String name
      Label shown in the create-torrent filter list, such as ".nfo files".
    • filterPattern

      public final String filterPattern
      The filename fragment tested against each file when a torrent is built.
    • filterType

      public final String filterType
      How the fragment is tested: "starts_with", "contains" or "ends_with".
    • isDefault

      public final boolean isDefault
      True to pre-check this filter in the create-torrent form.
  • Constructor Details

    • TorrentCreateFilter

      public TorrentCreateFilter(String name, String filterPattern, String filterType, boolean isDefault)
      Creates a new torrent creation filter.
      Parameters:
      name - the label shown in the create-torrent filter list
      filterPattern - the filename fragment matched against each file
      filterType - the match mode: "starts_with", "contains" or "ends_with"
      isDefault - true to pre-check this filter in the create-torrent form