public final class IOUtils
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static long |
copy(@NonNull java.io.InputStream in,
@NonNull java.io.OutputStream out)
Reads all bytes from an input stream and writes them to an output stream.
|
static java.lang.String |
toString(@NonNull java.io.InputStream in,
@NonNull java.nio.charset.Charset encoding)
Reads all char from an input stream and writes them to a string.
|
public static java.lang.String toString(@NonNull java.io.InputStream in,
@NonNull java.nio.charset.Charset encoding)
throws java.io.IOException
in - The input stream to read from, must not be null.encoding - The encoding to use, must not be null.null.java.io.IOException - If an IO error occurs.public static long copy(@NonNull java.io.InputStream in,
@NonNull java.io.OutputStream out)
throws java.io.IOException
in - The input stream to read from, must not be null.out - The output stream to write to, must not be null.java.io.IOException - If an IO error occurs.Copyright © 2022 - present; JODConverter. All rights reserved.