mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 06:08:31 +02:00
Added option to scan full web page for favicons
This commit is contained in:
@@ -54,6 +54,15 @@ public class JsoupEx {
|
||||
}
|
||||
}
|
||||
|
||||
static Document parse(InputStream stream, String charset, String baseUri) throws IOException {
|
||||
try {
|
||||
return Jsoup.parse(stream, charset, baseUri);
|
||||
} catch (OutOfMemoryError ex) {
|
||||
Log.e(ex);
|
||||
return Document.createShell("");
|
||||
}
|
||||
}
|
||||
|
||||
static Document parse(File in) throws IOException {
|
||||
try (InputStream is = new FileInputStream(in)) {
|
||||
return Jsoup.parse(new FilteredStream(is), StandardCharsets.UTF_8.name(), "");
|
||||
|
||||
Reference in New Issue
Block a user