public interface ResourceLoader extends Closeable
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
getContents(URI url,
URI referrer)
Get the contents of the given URL as String.
|
Optional<String> |
getExternalInlineImgSrc(URI url,
URI referrer)
Get the contents of the given URL as HTML img tag src: e.g.
|
String |
getInlineImgSrc(String contentType,
InputStream in)
Read binary image data from in and get e.g.
|
Optional<String> getContents(URI url, URI referrer)
String getInlineImgSrc(String contentType, InputStream in) throws IOException
IOException - In case of encoding problemsCopyright © 2013–2019 mklinger GmbH. All rights reserved.