public class StreamUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BUFFER_SIZE |
| Constructor and Description |
|---|
StreamUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
copy(InputStream inputStream,
OutputStream outputStream) |
static byte[] |
streamToBytes(InputStream stream) |
static String |
streamToString(InputStream stream) |
public static final int BUFFER_SIZE
public static int copy(@NotNull
InputStream inputStream,
@NotNull
OutputStream outputStream)
throws IOException
IOExceptionpublic static String streamToString(InputStream stream) throws IOException
IOExceptionpublic static byte[] streamToBytes(InputStream stream) throws IOException
IOExceptionCopyright © 2023. All rights reserved.