MCPcopy Create free account
hub / github.com/Frontrooms/3.0-GC / toString

Method toString

src/main/java/emu/grasscutter/utils/Utils.java:61–68  ·  view source on GitHub ↗
(InputStream inputStream)

Source from the content-addressed store, hash-verified

59 }
60
61 public static String toString(InputStream inputStream) throws IOException {
62 BufferedInputStream bis = new BufferedInputStream(inputStream);
63 ByteArrayOutputStream buf = new ByteArrayOutputStream();
64 for (int result = bis.read(); result != -1; result = bis.read()) {
65 buf.write((byte) result);
66 }
67 return buf.toString();
68 }
69
70 public static void logByteArray(byte[] array) {
71 ByteBuf b = Unpooled.wrappedBuffer(array);

Callers 15

DATAMethod · 0.45
RESOURCEMethod · 0.45
PLUGINMethod · 0.45
SCRIPTMethod · 0.45
PACKETMethod · 0.45
getLanguageOptionMethod · 0.45
lowerCaseFirstCharMethod · 0.45
readFromInputStreamMethod · 0.45
RangeMethod · 0.45
SparseSetMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45

Calls 2

readMethod · 0.80
writeMethod · 0.80

Tested by

no test coverage detected