in artifactregistry-maven-wagon/src/main/java/com/google/cloud/artifactregistry/wagon/ProcessBuilderCommandExecutor.java [40:49]
private static String readStreamToString(InputStream input) throws IOException {
InputStreamReader reader = new InputStreamReader(input);
StringBuilder output = new StringBuilder();
char[] buf = new char[0x800];
int nRead;
while ((nRead = reader.read(buf)) != -1) {
output.append(buf, 0, nRead);
}
return output.toString();
}