public abstract class SupportUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
| 构造器和说明 |
|---|
SupportUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
close(Closeable x) |
static void |
copy(InputStream input,
OutputStream output) |
static String |
read(InputStream in) |
static String |
read(Reader reader) |
static byte[] |
readByteArray(InputStream input) |
static byte[] |
readByteArrayFromResource(String resource) |
static String |
readFromResource(String resource) |
public static final int DEFAULT_BUFFER_SIZE
public static String read(InputStream in)
public static byte[] readByteArrayFromResource(String resource) throws IOException
IOExceptionpublic static byte[] readByteArray(InputStream input) throws IOException
IOExceptionpublic static void copy(InputStream input, OutputStream output) throws IOException
IOExceptionpublic static void close(Closeable x)
Copyright © 2022. All rights reserved.