Class WebUtil
java.lang.Object
com.ibm.wala.cast.js.html.WebUtil
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Pair
<Set<MappedSourceModule>, File> extractScriptFromHTML
(URL url, Supplier<JSSourceExtractor> fSourceExtractor) static Pair
<Set<MappedSourceModule>, File> extractScriptFromHTML
(URL url, Supplier<JSSourceExtractor> fSourceExtractor, Reader r) static Reader
static void
static void
setFactory
(IHtmlParserFactory factory)
-
Field Details
-
preamble
- See Also:
-
-
Constructor Details
-
WebUtil
public WebUtil()
-
-
Method Details
-
setFactory
-
extractScriptFromHTML
public static Pair<Set<MappedSourceModule>,File> extractScriptFromHTML(URL url, Supplier<JSSourceExtractor> fSourceExtractor) throws TranslatorToCAst.Error - Throws:
TranslatorToCAst.Error
-
extractScriptFromHTML
public static Pair<Set<MappedSourceModule>,File> extractScriptFromHTML(URL url, Supplier<JSSourceExtractor> fSourceExtractor, Reader r) throws TranslatorToCAst.Error - Returns:
- a pair (S,F), where S is a set of extracted sources, and F is the temp file holding the
combined sources (or
null
if no such file exists) - Throws:
TranslatorToCAst.Error
-
main
-
getStream
- Throws:
IOException
-