public class HtmlImportParser extends Object
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.
|
public static void parseImports(String resourcePath, Function<String,InputStream> getResourceAsStream, Function<String,String> resolveResource, Consumer<String> importHandler)
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 passedCopyright © 2018. All rights reserved.