public class Streams extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
copy(InputStream in,
OutputStream out)
Copies bytes from an InputStream to an OutputStream.
|
static void |
copy(Reader in,
Writer out)
Copies characters from a Reader to a Writer.
|
static String[] |
readLines(InputStream input)
Reads the lines of an input stream.
|
static String[] |
readLines(Reader reader)
Reads the lines from a Reader.
|
public static String[] readLines(InputStream input) throws IOException
List<String> in future!?input - the input streamIOExceptionpublic static String[] readLines(Reader reader) throws IOException
List<String> in future!?reader - the readerIOExceptionpublic static void copy(InputStream in, OutputStream out) throws IOException
in - the InputStreamout - the OutputStreamIOExceptionpublic static void copy(Reader in, Writer out) throws IOException
in - the Readerout - the WriterIOExceptionCopyright © 2002–2017 SoftSmithy. All rights reserved.