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