Sort members.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1508635 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f881372d92
commit
e6759b8c10
|
@ -92,6 +92,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.
|
||||
*
|
||||
|
@ -144,21 +159,6 @@ public class CSVParser implements Iterable<CSVRecord>, 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.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue