@Test void convertStreamToString() { assertEquals(MESSAGE, IOUtils.convertStreamToString(IOUtils.convertStringToStream(MESSAGE)).get()); }
public static Result<String, IOException> convertStreamToString(InputStream inputStream) { return convertStreamToString(inputStream, StandardCharsets.UTF_8); }
IOUtils { public static Result<String, IOException> convertStreamToString(InputStream inputStream) { return convertStreamToString(inputStream, StandardCharsets.UTF_8); } }
IOUtils { public static Result<String, IOException> convertStreamToString(InputStream inputStream) { return convertStreamToString(inputStream, StandardCharsets.UTF_8); } private  IOUtils(); }
IOUtils { public static Result<String, IOException> convertStreamToString(InputStream inputStream) { return convertStreamToString(inputStream, StandardCharsets.UTF_8); } private  IOUtils(); static Result<String, IOException> fetchContent(String url); static Result<InputStream, IOException> fetchContentAsStream(String url); static InputStream convertStringToStream(String str); static Result<String, IOException> convertStreamToString(InputStream inputStream); static Result<String, IOException> convertStreamToString(InputStream inputStream, Charset encoding); static void close(@Nullable Closeable closeable); static void close(@Nullable Closeable closeable, @Nullable Consumer<IOException> exceptionConsumer); }
IOUtils { public static Result<String, IOException> convertStreamToString(InputStream inputStream) { return convertStreamToString(inputStream, StandardCharsets.UTF_8); } private  IOUtils(); static Result<String, IOException> fetchContent(String url); static Result<InputStream, IOException> fetchContentAsStream(String url); static InputStream convertStringToStream(String str); static Result<String, IOException> convertStreamToString(InputStream inputStream); static Result<String, IOException> convertStreamToString(InputStream inputStream, Charset encoding); static void close(@Nullable Closeable closeable); static void close(@Nullable Closeable closeable, @Nullable Consumer<IOException> exceptionConsumer); static final int DEFAULT_BUFFER_SIZE; }