java.lang.Object
org.klomp.snark.TorrentCreateFilter
- All Implemented Interfaces:
Serializable
A structure for torrent creation filters.
- See Also:
Field Summary
Modifier and TypeFieldDescriptionfinal StringThe filename fragment tested against each file when a torrent is built.final StringHow the fragment is tested: "starts_with", "contains" or "ends_with".final booleanTrue to pre-check this filter in the create-torrent form.final StringLabel shown in the create-torrent filter list, such as ".nfo files".private static final longPinned for serialized-form compatibility.Constructor Summary
ConstructorsConstructorDescriptionTorrentCreateFilter(String name, String filterPattern, String filterType, boolean isDefault) Creates a new torrent creation filter.Method Summary
Field Details
serialVersionUID
private static final long serialVersionUIDPinned for serialized-form compatibility.- See Also:
name
Label shown in the create-torrent filter list, such as ".nfo files".filterPattern
The filename fragment tested against each file when a torrent is built.filterType
How the fragment is tested: "starts_with", "contains" or "ends_with".isDefault
public final boolean isDefaultTrue to pre-check this filter in the create-torrent form.
Constructor Details
TorrentCreateFilter
Creates a new torrent creation filter.- Parameters:
name- the label shown in the create-torrent filter listfilterPattern- the filename fragment matched against each filefilterType- the match mode: "starts_with", "contains" or "ends_with"isDefault- true to pre-check this filter in the create-torrent form