Javadoc.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1461240 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9107316c0b
commit
d10442b68a
|
@ -353,6 +353,7 @@ public class CSVFormat implements Serializable {
|
||||||
* the input stream
|
* the input stream
|
||||||
* @return a stream of CSVRecord
|
* @return a stream of CSVRecord
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
|
* If an I/O error occurs
|
||||||
*/
|
*/
|
||||||
public Iterable<CSVRecord> parse(final Reader in) throws IOException {
|
public Iterable<CSVRecord> parse(final Reader in) throws IOException {
|
||||||
return new CSVParser(in, this);
|
return new CSVParser(in, this);
|
||||||
|
@ -599,7 +600,8 @@ public class CSVFormat implements Serializable {
|
||||||
* @param in
|
* @param in
|
||||||
* the input stream
|
* the input stream
|
||||||
* @return a CSVRecord stream
|
* @return a CSVRecord stream
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
|
* If an I/O error occurs
|
||||||
*/
|
*/
|
||||||
public Iterable<CSVRecord> parse(final Reader in) throws IOException {
|
public Iterable<CSVRecord> parse(final Reader in) throws IOException {
|
||||||
return this.build().parse(in);
|
return this.build().parse(in);
|
||||||
|
|
|
@ -99,6 +99,8 @@ public class CSVParser implements Iterable<CSVRecord> {
|
||||||
* a Reader containing "csv-formatted" input
|
* a Reader containing "csv-formatted" input
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* thrown if the parameters of the format are inconsistent
|
* thrown if the parameters of the format are inconsistent
|
||||||
|
* @throws IOException
|
||||||
|
* If an I/O error occurs
|
||||||
*/
|
*/
|
||||||
public CSVParser(final Reader input) throws IOException {
|
public CSVParser(final Reader input) throws IOException {
|
||||||
this(input, CSVFormat.DEFAULT);
|
this(input, CSVFormat.DEFAULT);
|
||||||
|
@ -113,6 +115,8 @@ public class CSVParser implements Iterable<CSVRecord> {
|
||||||
* the CSVFormat used for CSV parsing
|
* the CSVFormat used for CSV parsing
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* thrown if the parameters of the format are inconsistent
|
* thrown if the parameters of the format are inconsistent
|
||||||
|
* @throws IOException
|
||||||
|
* If an I/O error occurs
|
||||||
*/
|
*/
|
||||||
public CSVParser(final Reader input, final CSVFormat format) throws IOException {
|
public CSVParser(final Reader input, final CSVFormat format) throws IOException {
|
||||||
this.lexer = new CSVLexer(format, new ExtendedBufferedReader(input));
|
this.lexer = new CSVLexer(format, new ExtendedBufferedReader(input));
|
||||||
|
@ -128,6 +132,8 @@ public class CSVParser implements Iterable<CSVRecord> {
|
||||||
* the CSVFormat used for CSV parsing
|
* the CSVFormat used for CSV parsing
|
||||||
* @throws IllegalArgumentException
|
* @throws IllegalArgumentException
|
||||||
* thrown if the parameters of the format are inconsistent
|
* thrown if the parameters of the format are inconsistent
|
||||||
|
* @throws IOException
|
||||||
|
* If an I/O error occurs
|
||||||
*/
|
*/
|
||||||
public CSVParser(final String input, final CSVFormat format) throws IOException {
|
public CSVParser(final String input, final CSVFormat format) throws IOException {
|
||||||
this(new StringReader(input), format);
|
this(new StringReader(input), format);
|
||||||
|
|
|
@ -80,6 +80,7 @@ public class CSVPrinter implements Flushable, Closeable {
|
||||||
* Flushes the underlying stream.
|
* Flushes the underlying stream.
|
||||||
*
|
*
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
|
* If an I/O error occurs
|
||||||
*/
|
*/
|
||||||
public void flush() throws IOException {
|
public void flush() throws IOException {
|
||||||
if (out instanceof Flushable) {
|
if (out instanceof Flushable) {
|
||||||
|
|
Loading…
Reference in New Issue