public class MagnetUriParser extends Object
Modifier and Type | Method and Description |
---|---|
static MagnetUriParser |
lenientParser()
Creates a parser, that will suppress parsing errors,
that do not prevent identification of torrent ID,
e.g.
|
MagnetUri |
parse(String uriString)
Create a magnet URI from its' string representation in BEP-9 format.
|
MagnetUri |
parse(URI uri)
Create a magnet URI from its' URI representation in BEP-9 format.
|
static MagnetUriParser |
parser()
Creates a parser, that will throw an exception,
when some of the elements of the magnet link can not be parsed,
e.g.
|
public static MagnetUriParser parser()
public static MagnetUriParser lenientParser()
public MagnetUri parse(String uriString)
Copyright © 2016–2021. All rights reserved.