public final class StreamUtils extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
readAllBytes(InputStream stream) |
static String |
readAllText(InputStream stream) |
static String |
readAllText(InputStream stream,
Charset charset) |
@Nonnull public static String readAllText(@Nonnull InputStream stream) throws IOException
IOException@Nonnull public static String readAllText(@Nonnull InputStream stream, @Nonnull Charset charset) throws IOException
IOException@Nonnull
public static byte[] readAllBytes(@Nonnull
InputStream stream)
throws IOException
IOExceptionCopyright © 2024. All rights reserved.