public final class StreamUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
readAllBytes(InputStream stream) |
static String |
readAllText(InputStream stream) |
static String |
readAllText(InputStream stream,
Charset charset) |
static int |
writeTo(InputStream in,
Consumer3<byte[],Integer,Integer> consumer) |
static int |
writeTo(InputStream in,
OutputStream out) |
@Nonnull public static String readAllText(@Nonnull InputStream stream) throws IOException
IOException@Nonnull public static String readAllText(@Nonnull InputStream stream, @Nonnull Charset charset) throws IOException
IOExceptionpublic static int writeTo(@Nonnull
InputStream in,
@Nonnull
OutputStream out)
throws IOException
IOExceptionpublic static int writeTo(@Nonnull
InputStream in,
@Nonnull
Consumer3<byte[],Integer,Integer> consumer)
throws IOException
IOException@Nonnull
public static byte[] readAllBytes(@Nonnull
InputStream stream)
throws IOException
IOExceptionCopyright © 2024. All rights reserved.