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