/** * Reads all lines from a stream, ignores all comments, and closes the * stream. * * @param stream * the input stream */ public static Map<String, String> readAllLinesAsMap(InputStream stream) throws IOException { return readAllLinesAsMap(stream, Integer.MAX_VALUE); }
/** * Reads all lines from a stream, ignores all comments, and closes the * stream. * * @param stream * the input stream */ public static Map<String, String> readAllLinesAsMap(InputStream stream) throws IOException { return readAllLinesAsMap(stream, Integer.MAX_VALUE); }
public void loadParameters(InputStream stream) throws IOException { if (stream == null) { throw new IllegalArgumentException("Stream is null!"); } setParameters(IOUtils.readAllLinesAsMap(stream)); }