public class IOStreamUtilities extends Object
| Constructor and Description |
|---|
IOStreamUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getLinesFromInputStream(InputStream is)
Interprets is as a stream of UTF-8 encoded lines and returns all lines.
|
static BufferedReader |
getReaderFromInputStream(InputStream is)
Returns a buffered reader with UTF-8 encoding from the given input stream.
|
public static BufferedReader getReaderFromInputStream(InputStream is)
is - The input stream to get an UTF-8 reader from.public static List<String> getLinesFromInputStream(InputStream is) throws IOException
is - The input stream.IOException - If reading fails.Copyright © 2019 JULIE Lab, Germany. All rights reserved.