public class StreamUtil extends Object
| 构造器和说明 |
|---|
StreamUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
io(InputStream in,
OutputStream out) |
static void |
io(InputStream in,
OutputStream out,
int bufferSize) |
static void |
io(Reader in,
Writer out) |
static void |
io(Reader in,
Writer out,
int bufferSize) |
static String |
readText(InputStream in) |
static String |
readText(InputStream in,
String encoding) |
static String |
readText(InputStream in,
String encoding,
int bufferSize) |
static String |
readText(Reader reader) |
static String |
readText(Reader reader,
int bufferSize) |
static OutputStream |
synchronizedOutputStream(OutputStream out) |
static OutputStream |
synchronizedOutputStream(OutputStream out,
Object lock) |
public static void io(InputStream in, OutputStream out) throws IOException
IOExceptionpublic static void io(InputStream in, OutputStream out, int bufferSize) throws IOException
IOExceptionpublic static void io(Reader in, Writer out) throws IOException
IOExceptionpublic static void io(Reader in, Writer out, int bufferSize) throws IOException
IOExceptionpublic static OutputStream synchronizedOutputStream(OutputStream out)
public static OutputStream synchronizedOutputStream(OutputStream out, Object lock)
public static String readText(InputStream in) throws IOException
IOExceptionpublic static String readText(InputStream in, String encoding) throws IOException
IOExceptionpublic static String readText(InputStream in, String encoding, int bufferSize) throws IOException
IOExceptionpublic static String readText(Reader reader) throws IOException
IOExceptionpublic static String readText(Reader reader, int bufferSize) throws IOException
IOExceptionCopyright © 2020. All rights reserved.