public class SupportUtils extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DEFAULT_BUFFER_SIZE |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
close(Closeable x) |
static void |
copy(InputStream input,
OutputStream output) |
static void |
forbid(javax.servlet.http.HttpServletResponse response) |
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) |
static void |
toJSON(javax.servlet.http.HttpServletResponse response,
Object o) |
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)
public static void toJSON(javax.servlet.http.HttpServletResponse response,
Object o)
public static void forbid(javax.servlet.http.HttpServletResponse response)
Copyright © 2022. All rights reserved.