MCPcopy Index your code
hub / github.com/VolmitSoftware/Adapt / toString

Method toString

src/main/java/com/volmit/adapt/util/IO.java:693–697  ·  view source on GitHub ↗

Get the contents of an InputStream as a String using the default character encoding of the platform. This method buffers the input internally, so there is no need to use a BufferedInputStream . @param input the InputStream to read from @return the requested

(InputStream input)

Source from the content-addressed store, hash-verified

691 * @throws IOException if an I/O error occurs
692 */
693 public static String toString(InputStream input) throws IOException {
694 StringWriter sw = new StringWriter();
695 copy(input, sw);
696 return sw.toString();
697 }
698
699 /**
700 * Get the contents of an <code>InputStream</code> as a String using the

Callers 5

IOClass · 0.45
decompressMethod · 0.45
writeAllMethod · 0.45
writeMethod · 0.45
writeLinesMethod · 0.45

Calls 1

copyMethod · 0.95

Tested by

no test coverage detected