public class Mf2Parser extends Object
| Constructor and Description |
|---|
Mf2Parser()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
JsonDict |
parse(org.jsoup.nodes.Document doc,
URI baseUri)
Parse an existing document for microformats2.
|
JsonDict |
parse(String html,
URI baseUri)
Parse an existing document for microformats2.
|
JsonDict |
parse(URI resource)
Fetch a remote resource and parse it for microformats2.
|
Mf2Parser |
setIncludeAlternates(boolean includeAlts)
If true, include the "alternates" key in the parsed output.
|
Mf2Parser |
setIncludeRelUrls(boolean includeRelUrls)
If true, include the experimental "rel-urls" hash in the parsed output.
|
public Mf2Parser setIncludeAlternates(boolean includeAlts)
includeAlts - public Mf2Parser setIncludeRelUrls(boolean includeRelUrls)
includeRelUrls - public JsonDict parse(URI resource) throws IOException
resource - the URI of the resource to fetch.IOExceptionpublic JsonDict parse(String html, URI baseUri)
html - the contents of the document to parsebaseUri - the URI where the document exists, used for normalizationpublic JsonDict parse(org.jsoup.nodes.Document doc, URI baseUri)
doc - the Jsoup document to parsebaseUri - the URI where the document exists, used for normalizationCopyright © 2015. All rights reserved.