public class IOTools extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_BUFFER_SIZE |
| Modifier and Type | Method and Description |
|---|---|
static void |
flow(InputStream is,
OutputStream os) |
static void |
flow(InputStream is,
OutputStream os,
byte[] buf)
Deprecated.
Unused. Will be removed in 8.5.x
|
static void |
flow(Reader reader,
Writer writer) |
static void |
flow(Reader reader,
Writer writer,
char[] buf)
Read input from reader and write it to writer until there is no more
input from reader.
|
protected static final int DEFAULT_BUFFER_SIZE
public static void flow(Reader reader, Writer writer, char[] buf) throws IOException
reader - the reader to read from.writer - the writer to write to.buf - the char array to use as a bufferIOExceptionpublic static void flow(Reader reader, Writer writer) throws IOException
IOExceptionflow( Reader, Writer, char[] )@Deprecated public static void flow(InputStream is, OutputStream os, byte[] buf) throws IOException
is - input stream the input stream to read from.os - output stream the output stream to write to.buf - the byte array to use as a bufferIOExceptionpublic static void flow(InputStream is, OutputStream os) throws IOException
IOExceptionflow( java.io.InputStream, java.io.OutputStream, byte[] )Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.