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:
Gary D. Gregory 2013-07-30 21:24:52 +00:00
parent f881372d92
commit e6759b8c10
1 changed files with 16 additions and 16 deletions

View File

@ -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.
*
@ -128,7 +143,7 @@ public class CSVParser implements Iterable<CSVRecord>, 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<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.
*