MCPcopy Create free account
hub / github.com/FongMi/TV / streamToString

Method streamToString

chaquo/src/main/java/com/fongmi/chaquo/Platform.java:168–172  ·  view source on GitHub ↗
(InputStream in)

Source from the content-addressed store, hash-verified

166 }
167
168 private String streamToString(InputStream in) throws IOException {
169 ByteArrayOutputStream result = new ByteArrayOutputStream();
170 transferStream(in, result);
171 return result.toString(StandardCharsets.UTF_8.name());
172 }
173
174 private void loadNativeLibs() throws JSONException {
175 String pythonVer = buildJson.getString("python_version");

Callers 1

PlatformMethod · 0.95

Calls 3

transferStreamMethod · 0.95
toStringMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected