()
| 55 | } |
| 56 | |
| 57 | @Override |
| 58 | public void run() { |
| 59 | try (var in = new BufferedInputStream(new URL(_url).openStream()); |
| 60 | var out = new ByteArrayOutputStream();) |
| 61 | { |
| 62 | in.transferTo(out); |
| 63 | if (_thread == this) { |
| 64 | try (var data = io.github.humbleui.skija.Data.makeFromBytes(out.toByteArray());) { |
| 65 | _dom = new SVGDOM(data); |
| 66 | } |
| 67 | } |
| 68 | } catch (Exception e) { |
| 69 | if (_thread == this) |
| 70 | _error = e; |
| 71 | } finally { |
| 72 | if (_thread == this) |
| 73 | _thread = null; |
| 74 | } |
| 75 | } |
| 76 | } |
| 77 | |
| 78 | @Override |
no test coverage detected