MCPcopy Create free account
hub / github.com/HumbleUI/Skija / run

Method run

examples/scenes/src/SVGScene.java:57–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

drawOneMethod · 0.45

Calls 2

openStreamMethod · 0.80
makeFromBytesMethod · 0.45

Tested by

no test coverage detected