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

Method loadLines

htmlflow-core/src/test/java/htmlflow/test/Utils.java:70–81  ·  view source on GitHub ↗
(String path)

Source from the content-addressed store, hash-verified

68 }
69
70 public static Stream<String> loadLines(String path) {
71 try{
72 InputStream in = TestDivDetails.class
73 .getClassLoader()
74 .getResource(path)
75 .openStream();
76 BufferedReader reader = new BufferedReader(new InputStreamReader(in));
77 return reader.lines().onClose(asUncheckedRunnable(reader));
78 } catch (IOException e) {
79 throw new UncheckedIOException(e);
80 }
81 }
82
83 /**
84 * Convert a Closeable to a Runnable by converting checked IOException

Calls 1

asUncheckedRunnableMethod · 0.95

Tested by

no test coverage detected