We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.internal.
Class HtmlImportParser
- java.lang.Object
-
- com.vaadin.flow.component.internal.HtmlImportParser
-
public class HtmlImportParser extends Object
Helper for finding the HTML imports of a resource.
Since:
1.2
Author:
Vaadin Ltd
-
-
Method Summary
All Methods Modifier and Type Method and Description static void
parseImports(String resourcePath, Function<String,InputStream> getResourceAsStream, Function<String,String> resolveResource, Consumer<String> importHandler)
Parses the contents of the given resource and passes any found HTML imports to the given consumer.
-
-
-
Method Detail
-
parseImports
public static void parseImports(String resourcePath, Function<String,InputStream> getResourceAsStream, Function<String,String> resolveResource, Consumer<String> importHandler)
Parses the contents of the given resource and passes any found HTML imports to the given consumer.
Parameters:
resourcePath
- the path of the resource from which to fingetResourceAsStream
- a callback for opening an input stream with the contents of the given resourceresolveResource
- a callback that resolves the given resource pathimportHandler
- the callback to which found HTML imports should be passed
-
-