MCPcopy Index your code
hub / github.com/MrFuFuFu/RxFace / readString

Method readString

sdk_unuse/HttpRequests.java:245–260  ·  view source on GitHub ↗
(InputStream is)

Source from the content-addressed store, hash-verified

243 }
244
245 private static String readString(InputStream is) {
246 StringBuffer rst = new StringBuffer();
247
248 byte[] buffer = new byte[BUFFERSIZE];
249 int len = 0;
250
251 try {
252 while ((len = is.read(buffer)) > 0)
253 for (int i = 0; i < len; ++i)
254 rst.append((char)buffer[i]);
255 } catch (IOException e) {
256 e.printStackTrace();
257 }
258
259 return rst.toString();
260 }
261
262 /**
263 * create {@link HttpRequests} <br />

Callers 1

requestMethod · 0.95

Calls 1

toStringMethod · 0.80

Tested by

no test coverage detected