public class Read extends Object
| Constructor and Description |
|---|
Read() |
| Modifier and Type | Method and Description |
|---|---|
static @NotNull String |
read(InputStream is) |
static @NotNull String |
read(InputStream is,
Charset cs)
自动close InputStream
|
static @NotNull String |
read(Reader rd)
自动close Reader
|
static @NotNull String |
read(String uri) |
static @NotNull String |
read(String uri,
Charset cs) |
@NotNull public static @NotNull String read(InputStream is)
@NotNull public static @NotNull String read(InputStream is, Charset cs)
is - 输入流cs - 字符集,默认UTF8Copyright © 2020. All rights reserved.