public class IOUtils extends Object
Description:
| 构造器和说明 |
|---|
IOUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
close(Closeable stream) |
static int |
copy(InputStream input,
OutputStream output) |
static void |
copy(Reader input,
OutputStream output,
Charset encoding) |
static byte[] |
toByteArray(InputStream input) |
static byte[] |
toByteArray(Reader input) |
static byte[] |
toByteArray(Reader input,
Charset encoding) |
public static byte[] toByteArray(Reader input) throws IOException
IOExceptionpublic static byte[] toByteArray(Reader input, Charset encoding) throws IOException
IOExceptionpublic static void copy(Reader input, OutputStream output, Charset encoding) throws IOException
IOExceptionpublic static int copy(InputStream input, OutputStream output) throws IOException
IOExceptionpublic static byte[] toByteArray(InputStream input) throws IOException
IOExceptionpublic static void close(Closeable stream)
Copyright © 2019. All rights reserved.