MCPcopy Create free account
hub / github.com/xmlet/HtmlFlow / getRootElement

Method getRootElement

flowifier/src/test/java/htmlflow/test/Utils.java:47–51  ·  view source on GitHub ↗
(byte[] input)

Source from the content-addressed store, hash-verified

45 private Utils() {}
46
47 static Element getRootElement(byte[] input) {
48 W3CDom w3cDom = new W3CDom();
49 Document doc = w3cDom.fromJsoup(Jsoup.parse(new String(input, StandardCharsets.UTF_8)));
50 return doc.getDocumentElement();
51 }
52
53 static <T> Stream<String> htmlWrite(ByteArrayOutputStream mem){
54 InputStreamReader actual = new InputStreamReader(new ByteArrayInputStream(mem.toByteArray()));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected