@Deprecated public static List<String> readLines(InputStream stream, String charset) throws IOException { return IOGroovyMethods.readLines(stream, charset); }
@Deprecated public static List<String> readLines(InputStream stream) throws IOException { return IOGroovyMethods.readLines(stream); }
@Deprecated public static List<String> readLines(Reader reader) throws IOException { return IOGroovyMethods.readLines(reader); }
/** * Reads the file into a list of Strings, with one item for each line. * * @param file a File * @return a List of lines * @throws IOException if an IOException occurs. * @see IOGroovyMethods#readLines(java.io.Reader) * @since 1.0 */ public static List<String> readLines(File file) throws IOException { return IOGroovyMethods.readLines(newReader(file)); }
/** * Reads the URL contents into a list, with one element for each line. * * @param self a URL * @param charset opens the URL with a specified charset * @return a List of lines * @throws IOException if an IOException occurs. * @see IOGroovyMethods#readLines(java.io.Reader) * @since 1.6.8 */ public static List<String> readLines(URL self, String charset) throws IOException { return IOGroovyMethods.readLines(newReader(self, charset)); }
/** * Reads the stream into a list, with one element for each line. * * @param stream a stream * @param charset opens the stream with a specified charset * @return a List of lines * @throws IOException if an IOException occurs. * @see #readLines(java.io.Reader) * @since 1.6.8 */ public static List<String> readLines(InputStream stream, String charset) throws IOException { return readLines(newReader(stream, charset)); }
/** * Reads the file into a list of Strings, with one item for each line. * * @param file a File * @param charset opens the file with a specified charset * @return a List of lines * @throws IOException if an IOException occurs. * @see IOGroovyMethods#readLines(java.io.Reader) * @since 1.6.8 */ public static List<String> readLines(File file, String charset) throws IOException { return IOGroovyMethods.readLines(newReader(file, charset)); }
/** * Reads the URL contents into a list, with one element for each line. * * @param self a URL * @return a List of lines * @throws IOException if an IOException occurs. * @see IOGroovyMethods#readLines(java.io.Reader) * @since 1.6.8 */ public static List<String> readLines(URL self) throws IOException { return IOGroovyMethods.readLines(newReader(self)); }
/** * Reads the stream into a list, with one element for each line. * * @param stream a stream * @return a List of lines * @throws IOException if an IOException occurs. * @see #readLines(java.io.Reader) * @since 1.0 */ public static List<String> readLines(InputStream stream) throws IOException { return readLines(newReader(stream)); }
/** * Reads the file into a list of Strings, with one item for each line. * * @param self a Path * @param charset opens the file with a specified charset * @return a List of lines * @throws java.io.IOException if an IOException occurs. * @see org.codehaus.groovy.runtime.IOGroovyMethods#readLines(java.io.Reader) * @since 2.3.0 */ public static List<String> readLines(Path self, String charset) throws IOException { return IOGroovyMethods.readLines(newReader(self, charset)); }
/** * Reads the file into a list of Strings, with one item for each line. * * @param self a Path * @return a List of lines * @throws java.io.IOException if an IOException occurs. * @see org.codehaus.groovy.runtime.IOGroovyMethods#readLines(java.io.Reader) * @since 2.3.0 */ public static List<String> readLines(Path self) throws IOException { return IOGroovyMethods.readLines(newReader(self)); }