/** * Loads the text content of a file into a list of strings, each string corresponding to a line. * The line endings are either \n, \r or \r\n. * * @param file the file. * @param charset the character set to use. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. */ default List<String> linesOf(final File file, final Charset charset) { return Assertions.linesOf(file, charset); }
/** * Loads the text content of a file into a list of strings with the default charset, each string corresponding to a * line. * The line endings are either \n, \r or \r\n. * * @param file the file. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. */ default List<String> linesOf(final File file) { return Assertions.linesOf(file); }
/** * Loads the text content of a file into a list of strings, each string corresponding to a line. The line endings are * either \n, \r or \r\n. * * @param file the file. * @param charsetName the name of the character set to use. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. */ default List<String> linesOf(final File file, final String charsetName) { return Assertions.linesOf(file, charsetName); }
/** * Loads the text content of a URL into a list of strings with the default charset, each string corresponding to a * line. * The line endings are either \n, \r or \r\n. * * @param url the URL. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. * @since 3.9.0 */ default List<String> linesOf(URL url) { return Assertions.linesOf(url); }
/** * Loads the text content of a URL into a list of strings, each string corresponding to a line. * The line endings are either \n, \r or \r\n. * * @param url the URL. * @param charset the character set to use. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. * @since 3.9.0 */ default List<String> linesOf(URL url, Charset charset) { return Assertions.linesOf(url, charset); }
/** * Loads the text content of a URL into a list of strings, each string corresponding to a line. The line endings are * either \n, \r or \r\n. * * @param url the URL. * @param charsetName the name of the character set to use. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. * @since 3.9.0 */ default List<String> linesOf(URL url, String charsetName) { return Assertions.linesOf(url, charsetName); }
/** * Loads the text content of a URL into a list of strings, each string corresponding to a line. * The line endings are either \n, \r or \r\n. * * @param url the URL. * @param charset the character set to use. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. * @since 3.9.0 */ default List<String> linesOf(URL url, Charset charset) { return Assertions.linesOf(url, charset); }
/** * Loads the text content of a file into a list of strings with the default charset, each string corresponding to a * line. * The line endings are either \n, \r or \r\n. * * @param file the file. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. */ default List<String> linesOf(final File file) { return Assertions.linesOf(file); }
/** * Loads the text content of a file into a list of strings, each string corresponding to a line. * The line endings are either \n, \r or \r\n. * * @param file the file. * @param charset the character set to use. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. */ default List<String> linesOf(final File file, final Charset charset) { return Assertions.linesOf(file, charset); }
/** * Loads the text content of a file into a list of strings, each string corresponding to a line. The line endings are * either \n, \r or \r\n. * * @param file the file. * @param charsetName the name of the character set to use. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. */ default List<String> linesOf(final File file, final String charsetName) { return Assertions.linesOf(file, charsetName); }
/** * Loads the text content of a URL into a list of strings with the default charset, each string corresponding to a * line. * The line endings are either \n, \r or \r\n. * * @param url the URL. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. * @since 3.9.0 */ default List<String> linesOf(URL url) { return Assertions.linesOf(url); }
/** * Loads the text content of a URL into a list of strings, each string corresponding to a line. The line endings are * either \n, \r or \r\n. * * @param url the URL. * @param charsetName the name of the character set to use. * @return the content of the file. * @throws NullPointerException if the given charset is {@code null}. * @throws UncheckedIOException if an I/O exception occurs. * @since 3.9.0 */ default List<String> linesOf(URL url, String charsetName) { return Assertions.linesOf(url, charsetName); }
/** * Delegate call to {@link org.assertj.core.api.Assertions#linesOf(File,Charset)} */ default public List<String> linesOf(final File actual, final Charset arg1) { return Assertions.linesOf(actual, arg1); }
/** * Delegate call to {@link org.assertj.core.api.Assertions#linesOf(File)} */ default public List<String> linesOf(final File actual) { return Assertions.linesOf(actual); }
/** * Delegate call to {@link org.assertj.core.api.Assertions#linesOf(File,String)} */ default public List<String> linesOf(final File file, final String charsetName) { return Assertions.linesOf(file, charsetName); }