public class ItemsReader extends Object
| Constructor and Description |
|---|
ItemsReader() |
| Modifier and Type | Method and Description |
|---|---|
static <I> Stream<I> |
read(InputStream in,
Parser<I> ip)
Reads a list of items from an input stream.
|
static <I> Stream<I> |
read(String path,
Parser<I> ip)
Reads a list of items from a file.
|
public static <I> Stream<I> read(String path, Parser<I> ip) throws IOException
I - item typepath - path to fileip - item parserIOException - when I/O problemspublic static <I> Stream<I> read(InputStream in, Parser<I> ip) throws IOException
I - item typein - input stream to read fromip - item parserIOException - when I/O problemsCopyright © 2016. All rights reserved.