Class LineSource
- java.lang.Object
-
- org.antublue.test.engine.api.source.LineSource
-
public final class LineSource extends Object
Class to create a Stream of Parameters where each Parameter value is a line, skipping lines that start with a "#"
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stream<Parameter>of(File file, Charset charset)Method to get a Stream of Parameters from a Filestatic Stream<Parameter>of(InputStream inputStream, Charset charset)Method to get a Stream of Parameters from an InputStreamstatic Stream<Parameter>of(Reader reader)Method to get a Stream of Parameters from a Reader
-
-
-
Method Detail
-
of
public static Stream<Parameter> of(File file, Charset charset) throws IOException
Method to get a Stream of Parameters from a File- Parameters:
file-charset-- Returns:
- Throws:
IOException
-
of
public static Stream<Parameter> of(Reader reader) throws IOException
Method to get a Stream of Parameters from a Reader- Parameters:
reader-- Returns:
- Throws:
IOException
-
of
public static Stream<Parameter> of(InputStream inputStream, Charset charset) throws IOException
Method to get a Stream of Parameters from an InputStream- Parameters:
inputStream-charset-- Returns:
- Throws:
IOException
-
-