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 streamIOException
public static String[] readLines(Reader reader) throws IOException
List<String>
in future!?reader
- the readerIOException
public static void copy(InputStream in, OutputStream out) throws IOException
in
- the InputStreamout
- the OutputStreamIOException
public static void copy(Reader in, Writer out) throws IOException
in
- the Readerout
- the WriterIOException
Copyright © 2002–2017 SoftSmithy. All rights reserved.