public class HtmlImportShim extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
HtmlImportShim.ResourceLocator |
| Constructor and Description |
|---|
HtmlImportShim(File baseDir,
String baseUrl) |
HtmlImportShim(String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
protected KUrl |
computeAssetPath(KUrl containingFileUrl,
String href) |
KUrl |
getBaseUrl() |
HtmlImportShim |
inline(boolean inline) |
void |
inlineScripts(KUrl containingFileUrl,
HashSet<KUrl> visited,
List<Runnable> changes,
org.jsoup.nodes.Element doc) |
void |
inlineScripts(KUrl containingFileUrl,
HashSet<KUrl> visited,
List<Runnable> changes,
org.jsoup.select.Elements scripts) |
File |
locateResource(KUrl urlPath) |
static void |
main(String[] args) |
HtmlImportShim |
minify(boolean minify) |
void |
setLocator(HtmlImportShim.ResourceLocator locator) |
org.jsoup.nodes.Element |
shimImports(KUrl containingFileUrl,
HashSet<KUrl> visited,
List<List<org.jsoup.nodes.Node>> bodyContent) |
org.jsoup.nodes.Element |
shimImports(String htmlFile) |
void |
shimLink(KUrl containingFileUrl,
HashSet<KUrl> visited,
List<List<org.jsoup.nodes.Node>> bodyContent,
List<Runnable> changes,
org.jsoup.nodes.Element link) |
HtmlImportShim |
stripComments(boolean stripComments) |
void |
stripComments(org.jsoup.nodes.Document doc) |
public HtmlImportShim(String baseUrl)
public HtmlImportShim inline(boolean inline)
public void setLocator(HtmlImportShim.ResourceLocator locator)
public org.jsoup.nodes.Element shimImports(String htmlFile) throws IOException
IOExceptionpublic org.jsoup.nodes.Element shimImports(KUrl containingFileUrl, HashSet<KUrl> visited, List<List<org.jsoup.nodes.Node>> bodyContent) throws IOException
IOExceptionpublic void shimLink(KUrl containingFileUrl, HashSet<KUrl> visited, List<List<org.jsoup.nodes.Node>> bodyContent, List<Runnable> changes, org.jsoup.nodes.Element link) throws IOException
IOExceptionpublic void inlineScripts(KUrl containingFileUrl, HashSet<KUrl> visited, List<Runnable> changes, org.jsoup.nodes.Element doc) throws IOException
IOExceptionpublic void inlineScripts(KUrl containingFileUrl, HashSet<KUrl> visited, List<Runnable> changes, org.jsoup.select.Elements scripts) throws IOException
IOExceptionpublic void stripComments(org.jsoup.nodes.Document doc)
public KUrl getBaseUrl()
public HtmlImportShim stripComments(boolean stripComments)
public HtmlImportShim minify(boolean minify)
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2017. All rights reserved.