/usr/share/doc/libcommons-csv-java-doc/api/org/apache/commons/csv/CSVParser.html is in libcommons-csv-java-doc 0.1-SNAPSHOT+svn678580-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_24) on Sat Dec 31 20:15:09 UTC 2011 -->
<TITLE>
CSVParser
</TITLE>
<META NAME="date" CONTENT="2011-12-31">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="CSVParser";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CSVParser.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../org/apache/commons/csv/CharBuffer.html" title="class in org.apache.commons.csv"><B>PREV CLASS</B></A>
<A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/commons/csv/CSVParser.html" target="_top"><B>FRAMES</B></A>
<A HREF="CSVParser.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
org.apache.commons.csv</FONT>
<BR>
Class CSVParser</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.csv.CSVParser</B>
</PRE>
<HR>
<DL>
<DT><PRE>public class <B>CSVParser</B><DT>extends java.lang.Object</DL>
</PRE>
<P>
Parses CSV files according to the specified configuration.
Because CSV appears in many different dialects, the parser supports many
configuration settings by allowing the specification of a <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv"><CODE>CSVStrategy</CODE></A>.
<p>Parsing of a csv-string having tabs as separators,
'"' as an optional value encapsulator, and comments starting with '#':</p>
<pre>
String[][] data =
(new CSVParser(new StringReader("a\tb\nc\td"), new CSVStrategy('\t','"','#'))).getAllValues();
</pre>
<p>Parsing of a csv-string in Excel CSV format</p>
<pre>
String[][] data =
(new CSVParser(new StringReader("a;b\nc;d"), CSVStrategy.EXCEL_STRATEGY)).getAllValues();
</pre>
<p>
Internal parser state is completely covered by the strategy
and the reader-state.</p>
<p>see <a href="package-summary.html">package documentation</a>
for more details</p>
<P>
<P>
<HR>
<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->
<A NAME="nested_class_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Nested Class Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>(package private) static class</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A></B></CODE>
<BR>
Token is an internal token representation.</TD>
</TR>
</TABLE>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private <A HREF="../../../../org/apache/commons/csv/CharBuffer.html" title="class in org.apache.commons.csv">CharBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#code">code</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#EMPTY_STRING_ARRAY">EMPTY_STRING_ARRAY</A></B></CODE>
<BR>
Immutable empty String array.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private <A HREF="../../../../org/apache/commons/csv/ExtendedBufferedReader.html" title="class in org.apache.commons.csv">ExtendedBufferedReader</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#in">in</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#INITIAL_TOKEN_LENGTH">INITIAL_TOKEN_LENGTH</A></B></CODE>
<BR>
length of the initial token (content-)buffer</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private java.util.ArrayList</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#record">record</A></B></CODE>
<BR>
A record buffer for getLine().</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#reusableToken">reusableToken</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv">CSVStrategy</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#strategy">strategy</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#TT_EOF">TT_EOF</A></B></CODE>
<BR>
Token (which can have content) when end of file is reached.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#TT_EORECORD">TT_EORECORD</A></B></CODE>
<BR>
Token with content when end of a line is reached.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#TT_INVALID">TT_INVALID</A></B></CODE>
<BR>
Token has no valid content, i.e.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected static int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#TT_TOKEN">TT_TOKEN</A></B></CODE>
<BR>
Token with content, at beginning or in the middle of a line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private <A HREF="../../../../org/apache/commons/csv/CharBuffer.html" title="class in org.apache.commons.csv">CharBuffer</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#wsBuf">wsBuf</A></B></CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.InputStream)">CSVParser</A></B>(java.io.InputStream input)</CODE>
<BR>
<B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader)"><CODE>CSVParser(Reader)</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader)">CSVParser</A></B>(java.io.Reader input)</CODE>
<BR>
CSV parser using the default <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv"><CODE>CSVStrategy</CODE></A>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader, char)">CSVParser</A></B>(java.io.Reader input,
char delimiter)</CODE>
<BR>
<B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader, org.apache.commons.csv.CSVStrategy)"><CODE>CSVParser(Reader,CSVStrategy)</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader, char, char, char)">CSVParser</A></B>(java.io.Reader input,
char delimiter,
char encapsulator,
char commentStart)</CODE>
<BR>
<B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader, org.apache.commons.csv.CSVStrategy)"><CODE>CSVParser(Reader,CSVStrategy)</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader, org.apache.commons.csv.CSVStrategy)">CSVParser</A></B>(java.io.Reader input,
<A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv">CSVStrategy</A> strategy)</CODE>
<BR>
Customized CSV parser using the given <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv"><CODE>CSVStrategy</CODE></A></TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#encapsulatedTokenLexer(org.apache.commons.csv.CSVParser.Token, int)">encapsulatedTokenLexer</A></B>(<A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> tkn,
int c)</CODE>
<BR>
An encapsulated token lexer
Encapsulated tokens are surrounded by the given encapsulating-string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String[][]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#getAllValues()">getAllValues</A></B>()</CODE>
<BR>
Parses the CSV according to the given strategy
and returns the content as an array of records
(whereas records are arrays of single values).</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String[]</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#getLine()">getLine</A></B>()</CODE>
<BR>
Parses from the current point in the stream til
the end of the current line.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#getLineNumber()">getLineNumber</A></B>()</CODE>
<BR>
Returns the current line number in the input stream.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv">CSVStrategy</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#getStrategy()">getStrategy</A></B>()</CODE>
<BR>
Obtain the specified CSV Strategy</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#isEndOfFile(int)">isEndOfFile</A></B>(int c)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#isEndOfLine(int)">isEndOfLine</A></B>(int c)</CODE>
<BR>
Greedy - accepts \n and \r\n
This checker consumes silently the second control-character...</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#isWhitespace(int)">isWhitespace</A></B>(int c)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#nextToken()">nextToken</A></B>()</CODE>
<BR>
Convenience method for <code>nextToken(null)</code>.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#nextToken(org.apache.commons.csv.CSVParser.Token)">nextToken</A></B>(<A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> tkn)</CODE>
<BR>
Returns the next token.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#nextValue()">nextValue</A></B>()</CODE>
<BR>
Parses the CSV according to the given strategy
and returns the next csv-value as string.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#readEscape(int)">readEscape</A></B>(int c)</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../org/apache/commons/csv/CSVParser.html" title="class in org.apache.commons.csv">CSVParser</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#setStrategy(org.apache.commons.csv.CSVStrategy)">setStrategy</A></B>(<A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv">CSVStrategy</A> strategy)</CODE>
<BR>
<B>Deprecated.</B> <I>the strategy should be set in the constructor <A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader, org.apache.commons.csv.CSVStrategy)"><CODE>CSVParser(Reader,CSVStrategy)</CODE></A>.</I></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>private <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#simpleTokenLexer(org.apache.commons.csv.CSVParser.Token, int)">simpleTokenLexer</A></B>(<A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> tkn,
int c)</CODE>
<BR>
A simple token lexer
Simple token are tokens which are not surrounded by encapsulators.</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>protected int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../org/apache/commons/csv/CSVParser.html#unicodeEscapeLexer(int)">unicodeEscapeLexer</A></B>(int c)</CODE>
<BR>
Decodes Unicode escapes.</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="INITIAL_TOKEN_LENGTH"><!-- --></A><H3>
INITIAL_TOKEN_LENGTH</H3>
<PRE>
private static final int <B>INITIAL_TOKEN_LENGTH</B></PRE>
<DL>
<DD>length of the initial token (content-)buffer
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.commons.csv.CSVParser.INITIAL_TOKEN_LENGTH">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TT_INVALID"><!-- --></A><H3>
TT_INVALID</H3>
<PRE>
protected static final int <B>TT_INVALID</B></PRE>
<DL>
<DD>Token has no valid content, i.e. is in its initilized state.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.commons.csv.CSVParser.TT_INVALID">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TT_TOKEN"><!-- --></A><H3>
TT_TOKEN</H3>
<PRE>
protected static final int <B>TT_TOKEN</B></PRE>
<DL>
<DD>Token with content, at beginning or in the middle of a line.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.commons.csv.CSVParser.TT_TOKEN">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TT_EOF"><!-- --></A><H3>
TT_EOF</H3>
<PRE>
protected static final int <B>TT_EOF</B></PRE>
<DL>
<DD>Token (which can have content) when end of file is reached.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.commons.csv.CSVParser.TT_EOF">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="TT_EORECORD"><!-- --></A><H3>
TT_EORECORD</H3>
<PRE>
protected static final int <B>TT_EORECORD</B></PRE>
<DL>
<DD>Token with content when end of a line is reached.
<P>
<DL>
<DT><B>See Also:</B><DD><A HREF="../../../../constant-values.html#org.apache.commons.csv.CSVParser.TT_EORECORD">Constant Field Values</A></DL>
</DL>
<HR>
<A NAME="EMPTY_STRING_ARRAY"><!-- --></A><H3>
EMPTY_STRING_ARRAY</H3>
<PRE>
private static final java.lang.String[] <B>EMPTY_STRING_ARRAY</B></PRE>
<DL>
<DD>Immutable empty String array.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="in"><!-- --></A><H3>
in</H3>
<PRE>
private final <A HREF="../../../../org/apache/commons/csv/ExtendedBufferedReader.html" title="class in org.apache.commons.csv">ExtendedBufferedReader</A> <B>in</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="strategy"><!-- --></A><H3>
strategy</H3>
<PRE>
private <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv">CSVStrategy</A> <B>strategy</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="record"><!-- --></A><H3>
record</H3>
<PRE>
private final java.util.ArrayList <B>record</B></PRE>
<DL>
<DD>A record buffer for getLine(). Grows as necessary and is reused.
<P>
<DL>
</DL>
</DL>
<HR>
<A NAME="reusableToken"><!-- --></A><H3>
reusableToken</H3>
<PRE>
private final <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> <B>reusableToken</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="wsBuf"><!-- --></A><H3>
wsBuf</H3>
<PRE>
private final <A HREF="../../../../org/apache/commons/csv/CharBuffer.html" title="class in org.apache.commons.csv">CharBuffer</A> <B>wsBuf</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="code"><!-- --></A><H3>
code</H3>
<PRE>
private final <A HREF="../../../../org/apache/commons/csv/CharBuffer.html" title="class in org.apache.commons.csv">CharBuffer</A> <B>code</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="CSVParser(java.io.InputStream)"><!-- --></A><H3>
CSVParser</H3>
<PRE>
public <B>CSVParser</B>(java.io.InputStream input)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader)"><CODE>CSVParser(Reader)</CODE></A>.</I>
<P>
<DD>Default strategy for the parser follows the default <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv"><CODE>CSVStrategy</CODE></A>.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - an InputStream containing "csv-formatted" stream</DL>
</DL>
<HR>
<A NAME="CSVParser(java.io.Reader)"><!-- --></A><H3>
CSVParser</H3>
<PRE>
public <B>CSVParser</B>(java.io.Reader input)</PRE>
<DL>
<DD>CSV parser using the default <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv"><CODE>CSVStrategy</CODE></A>.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - a Reader containing "csv-formatted" input</DL>
</DL>
<HR>
<A NAME="CSVParser(java.io.Reader, char)"><!-- --></A><H3>
CSVParser</H3>
<PRE>
public <B>CSVParser</B>(java.io.Reader input,
char delimiter)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader, org.apache.commons.csv.CSVStrategy)"><CODE>CSVParser(Reader,CSVStrategy)</CODE></A>.</I>
<P>
<DD>Customized value delimiter parser.
The parser follows the default <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv"><CODE>CSVStrategy</CODE></A>
except for the delimiter setting.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - a Reader based on "csv-formatted" input<DD><CODE>delimiter</CODE> - a Char used for value separation</DL>
</DL>
<HR>
<A NAME="CSVParser(java.io.Reader, char, char, char)"><!-- --></A><H3>
CSVParser</H3>
<PRE>
public <B>CSVParser</B>(java.io.Reader input,
char delimiter,
char encapsulator,
char commentStart)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>use <A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader, org.apache.commons.csv.CSVStrategy)"><CODE>CSVParser(Reader,CSVStrategy)</CODE></A>.</I>
<P>
<DD>Customized csv parser.
The parser parses according to the given CSV dialect settings.
Leading whitespaces are truncated, unicode escapes are
not interpreted and empty lines are ignored.
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - a Reader based on "csv-formatted" input<DD><CODE>delimiter</CODE> - a Char used for value separation<DD><CODE>encapsulator</CODE> - a Char used as value encapsulation marker<DD><CODE>commentStart</CODE> - a Char used for comment identification</DL>
</DL>
<HR>
<A NAME="CSVParser(java.io.Reader, org.apache.commons.csv.CSVStrategy)"><!-- --></A><H3>
CSVParser</H3>
<PRE>
public <B>CSVParser</B>(java.io.Reader input,
<A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv">CSVStrategy</A> strategy)</PRE>
<DL>
<DD>Customized CSV parser using the given <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv"><CODE>CSVStrategy</CODE></A>
<P>
<DL>
<DT><B>Parameters:</B><DD><CODE>input</CODE> - a Reader containing "csv-formatted" input<DD><CODE>strategy</CODE> - the CSVStrategy used for CSV parsing</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail</B></FONT></TH>
</TR>
</TABLE>
<A NAME="getAllValues()"><!-- --></A><H3>
getAllValues</H3>
<PRE>
public java.lang.String[][] <B>getAllValues</B>()
throws java.io.IOException</PRE>
<DL>
<DD>Parses the CSV according to the given strategy
and returns the content as an array of records
(whereas records are arrays of single values).
<p>
The returned content starts at the current parse-position in
the stream.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>matrix of records x values ('null' when end of file)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on parse error or input read-failure</DL>
</DD>
</DL>
<HR>
<A NAME="nextValue()"><!-- --></A><H3>
nextValue</H3>
<PRE>
public java.lang.String <B>nextValue</B>()
throws java.io.IOException</PRE>
<DL>
<DD>Parses the CSV according to the given strategy
and returns the next csv-value as string.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>next value in the input stream ('null' when end of file)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on parse error or input read-failure</DL>
</DD>
</DL>
<HR>
<A NAME="getLine()"><!-- --></A><H3>
getLine</H3>
<PRE>
public java.lang.String[] <B>getLine</B>()
throws java.io.IOException</PRE>
<DL>
<DD>Parses from the current point in the stream til
the end of the current line.
<P>
<DD><DL>
<DT><B>Returns:</B><DD>array of values til end of line
('null' when end of file has been reached)
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on parse error or input read-failure</DL>
</DD>
</DL>
<HR>
<A NAME="getLineNumber()"><!-- --></A><H3>
getLineNumber</H3>
<PRE>
public int <B>getLineNumber</B>()</PRE>
<DL>
<DD>Returns the current line number in the input stream.
ATTENTION: in case your csv has multiline-values the returned
number does not correspond to the record-number
<P>
<DD><DL>
<DT><B>Returns:</B><DD>current line number</DL>
</DD>
</DL>
<HR>
<A NAME="nextToken()"><!-- --></A><H3>
nextToken</H3>
<PRE>
protected <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> <B>nextToken</B>()
throws java.io.IOException</PRE>
<DL>
<DD>Convenience method for <code>nextToken(null)</code>.
<P>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="nextToken(org.apache.commons.csv.CSVParser.Token)"><!-- --></A><H3>
nextToken</H3>
<PRE>
protected <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> <B>nextToken</B>(<A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> tkn)
throws java.io.IOException</PRE>
<DL>
<DD>Returns the next token.
A token corresponds to a term, a record change or an
end-of-file indicator.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tkn</CODE> - an existing Token object to reuse. The caller is responsible to initialize the
Token.
<DT><B>Returns:</B><DD>the next token found
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on stream access error</DL>
</DD>
</DL>
<HR>
<A NAME="simpleTokenLexer(org.apache.commons.csv.CSVParser.Token, int)"><!-- --></A><H3>
simpleTokenLexer</H3>
<PRE>
private <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> <B>simpleTokenLexer</B>(<A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> tkn,
int c)
throws java.io.IOException</PRE>
<DL>
<DD>A simple token lexer
Simple token are tokens which are not surrounded by encapsulators.
A simple token might contain escaped delimiters (as \, or \;). The
token is finished when one of the following conditions become true:
<ul>
<li>end of line has been reached (TT_EORECORD)</li>
<li>end of stream has been reached (TT_EOF)</li>
<li>an unescaped delimiter has been reached (TT_TOKEN)</li>
</ul>
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tkn</CODE> - the current token<DD><CODE>c</CODE> - the current character
<DT><B>Returns:</B><DD>the filled token
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on stream access error</DL>
</DD>
</DL>
<HR>
<A NAME="encapsulatedTokenLexer(org.apache.commons.csv.CSVParser.Token, int)"><!-- --></A><H3>
encapsulatedTokenLexer</H3>
<PRE>
private <A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> <B>encapsulatedTokenLexer</B>(<A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv">CSVParser.Token</A> tkn,
int c)
throws java.io.IOException</PRE>
<DL>
<DD>An encapsulated token lexer
Encapsulated tokens are surrounded by the given encapsulating-string.
The encapsulator itself might be included in the token using a
doubling syntax (as "", '') or using escaping (as in \", \').
Whitespaces before and after an encapsulated token are ignored.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>tkn</CODE> - the current token<DD><CODE>c</CODE> - the current character
<DT><B>Returns:</B><DD>a valid token object
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on invalid state</DL>
</DD>
</DL>
<HR>
<A NAME="unicodeEscapeLexer(int)"><!-- --></A><H3>
unicodeEscapeLexer</H3>
<PRE>
protected int <B>unicodeEscapeLexer</B>(int c)
throws java.io.IOException</PRE>
<DL>
<DD>Decodes Unicode escapes.
Interpretation of "\\uXXXX" escape sequences
where XXXX is a hex-number.
<P>
<DD><DL>
<DT><B>Parameters:</B><DD><CODE>c</CODE> - current char which is discarded because it's the "\\" of "\\uXXXX"
<DT><B>Returns:</B><DD>the decoded character
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE> - on wrong unicode escape sequence or read error</DL>
</DD>
</DL>
<HR>
<A NAME="readEscape(int)"><!-- --></A><H3>
readEscape</H3>
<PRE>
private int <B>readEscape</B>(int c)
throws java.io.IOException</PRE>
<DL>
<DD><DL>
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="setStrategy(org.apache.commons.csv.CSVStrategy)"><!-- --></A><H3>
setStrategy</H3>
<PRE>
public <A HREF="../../../../org/apache/commons/csv/CSVParser.html" title="class in org.apache.commons.csv">CSVParser</A> <B>setStrategy</B>(<A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv">CSVStrategy</A> strategy)</PRE>
<DL>
<DD><B>Deprecated.</B> <I>the strategy should be set in the constructor <A HREF="../../../../org/apache/commons/csv/CSVParser.html#CSVParser(java.io.Reader, org.apache.commons.csv.CSVStrategy)"><CODE>CSVParser(Reader,CSVStrategy)</CODE></A>.</I>
<P>
<DD>Sets the specified CSV Strategy
<P>
<DD><DL>
<DT><B>Returns:</B><DD>current instance of CSVParser to allow chained method calls</DL>
</DD>
</DL>
<HR>
<A NAME="getStrategy()"><!-- --></A><H3>
getStrategy</H3>
<PRE>
public <A HREF="../../../../org/apache/commons/csv/CSVStrategy.html" title="class in org.apache.commons.csv">CSVStrategy</A> <B>getStrategy</B>()</PRE>
<DL>
<DD>Obtain the specified CSV Strategy
<P>
<DD><DL>
<DT><B>Returns:</B><DD>strategy currently being used</DL>
</DD>
</DL>
<HR>
<A NAME="isWhitespace(int)"><!-- --></A><H3>
isWhitespace</H3>
<PRE>
private boolean <B>isWhitespace</B>(int c)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>true if the given char is a whitespace character</DL>
</DD>
</DL>
<HR>
<A NAME="isEndOfLine(int)"><!-- --></A><H3>
isEndOfLine</H3>
<PRE>
private boolean <B>isEndOfLine</B>(int c)
throws java.io.IOException</PRE>
<DL>
<DD>Greedy - accepts \n and \r\n
This checker consumes silently the second control-character...
<P>
<DD><DL>
<DT><B>Returns:</B><DD>true if the given character is a line-terminator
<DT><B>Throws:</B>
<DD><CODE>java.io.IOException</CODE></DL>
</DD>
</DL>
<HR>
<A NAME="isEndOfFile(int)"><!-- --></A><H3>
isEndOfFile</H3>
<PRE>
private boolean <B>isEndOfFile</B>(int c)</PRE>
<DL>
<DD><DL>
<DT><B>Returns:</B><DD>true if the given character indicates end of file</DL>
</DD>
</DL>
<!-- ========= END OF CLASS DATA ========= -->
<HR>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<A NAME="navbar_bottom"><!-- --></A>
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CSVParser.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../org/apache/commons/csv/CharBuffer.html" title="class in org.apache.commons.csv"><B>PREV CLASS</B></A>
<A HREF="../../../../org/apache/commons/csv/CSVParser.Token.html" title="class in org.apache.commons.csv"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?org/apache/commons/csv/CSVParser.html" target="_top"><B>FRAMES</B></A>
<A HREF="CSVParser.html" target="_top"><B>NO FRAMES</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY: <A HREF="#nested_class_summary">NESTED</A> | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_bottom"></A>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<HR>
</BODY>
</HTML>
|