Code example for InputStream

Methods: read

0
    } 
  } 
 
  private String readBytes(InputStream in, int count) throws IOException {
    byte[] result = new byte[count];
    assertThat(in.read(result)).isEqualTo(count);
    return new String(result, "US-ASCII");
  } 
}