Author: ggregory
Date: Tue Jul 30 21:24:52 2013
New Revision: 1508635
URL: http://svn.apache.org/r1508635
Log:
Sort members.
Modified:
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
Modified:
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
URL:
http://svn.apache.org/viewvc/commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java?rev=1508635&r1=1508634&r2=1508635&view=diff
==============================================================================
---
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
(original)
+++
commons/proper/csv/trunk/src/main/java/org/apache/commons/csv/CSVParser.java
Tue Jul 30 21:24:52 2013
@@ -93,6 +93,21 @@ import java.util.NoSuchElementException;
public class CSVParser implements Iterable<CSVRecord>, 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.
*
* <p>
@@ -128,7 +143,7 @@ public class CSVParser implements Iterab
public static CSVParser parseString(String string) throws IOException {
return parseString(string, CSVFormat.DEFAULT);
}
-
+
/**
* Creates a parser for the given {@link String}.
*
@@ -145,21 +160,6 @@ public class CSVParser implements Iterab
}
/**
- * 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.
*
* <p>