public class IOUtils extends Object
| 构造器和说明 |
|---|
IOUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static InputStream |
copyOf(InputStream stream) |
static InputStream |
fromBytes(byte[] buf) |
static byte[] |
getFileBytes(File file) |
static InputStream |
outToIn(OutputStream out) |
static boolean |
reset(InputStream stream) |
static byte[] |
toBytes(InputStream stream) |
static String |
toString(InputStream stream,
String charset) |
public static final boolean reset(InputStream stream)
public static final InputStream copyOf(InputStream stream) throws Exception
Exceptionpublic static final InputStream fromBytes(byte[] buf)
public static final byte[] toBytes(InputStream stream) throws IOException
IOExceptionpublic static final String toString(InputStream stream, String charset) throws IOException
IOExceptionpublic static final InputStream outToIn(OutputStream out)
public static byte[] getFileBytes(File file) throws IOException
IOExceptionCopyright © 2019. All rights reserved.