From e6759b8c109cc7babd5b20b5982a3c423fccb4f7 Mon Sep 17 00:00:00 2001 From: "Gary D. Gregory" Date: Tue, 30 Jul 2013 21:24:52 +0000 Subject: [PATCH] Sort members. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1508635 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/csv/CSVParser.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/java/org/apache/commons/csv/CSVParser.java b/src/main/java/org/apache/commons/csv/CSVParser.java index bb35482e..361e38df 100644 --- a/src/main/java/org/apache/commons/csv/CSVParser.java +++ b/src/main/java/org/apache/commons/csv/CSVParser.java @@ -92,6 +92,21 @@ import java.util.NoSuchElementException; */ public class CSVParser implements Iterable, Closeable { + /** + * Creates a parser for the given {@link File}. + * + * @param file + * a CSV file + * @param format + * the CSVFormat used for CSV parsing + * @return a new parser + * @throws IOException + * If an I/O error occurs + */ + public static CSVParser parseFile(File file, final CSVFormat format) throws IOException { + return new CSVParser(new FileReader(file), format); + } + /** * Creates a parser for the given resource. * @@ -128,7 +143,7 @@ public class CSVParser implements Iterable, Closeable { public static CSVParser parseString(String string) throws IOException { return parseString(string, CSVFormat.DEFAULT); } - + /** * Creates a parser for the given {@link String}. * @@ -144,21 +159,6 @@ public class CSVParser implements Iterable, Closeable { return new CSVParser(new StringReader(string), format); } - /** - * Creates a parser for the given {@link File}. - * - * @param file - * a CSV file - * @param format - * the CSVFormat used for CSV parsing - * @return a new parser - * @throws IOException - * If an I/O error occurs - */ - public static CSVParser parseFile(File file, final CSVFormat format) throws IOException { - return new CSVParser(new FileReader(file), format); - } - /** * Creates a parser for the given URL. *