Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/bugs/JiraCsv167Test.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/bugs/JiraCsv167Test.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/bugs/JiraCsv167Test.html Sun May 29 02:48:43 2016 @@ -0,0 +1,100 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> +<title>JiraCsv167Test xref</title> +<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/csv/bugs/JiraCsv167Test.html">View Javadoc</a></div><pre> +<a class="jxr_linenumber" name="L1" href="#L1">1</a> <em class="jxr_comment">/*</em> +<a class="jxr_linenumber" name="L2" href="#L2">2</a> <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em> +<a class="jxr_linenumber" name="L3" href="#L3">3</a> <em class="jxr_comment"> * contributor license agreements. See the NOTICE file distributed with</em> +<a class="jxr_linenumber" name="L4" href="#L4">4</a> <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em> +<a class="jxr_linenumber" name="L5" href="#L5">5</a> <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em> +<a class="jxr_linenumber" name="L6" href="#L6">6</a> <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em> +<a class="jxr_linenumber" name="L7" href="#L7">7</a> <em class="jxr_comment"> * the License. You may obtain a copy of the License at</em> +<a class="jxr_linenumber" name="L8" href="#L8">8</a> <em class="jxr_comment"> *</em> +<a class="jxr_linenumber" name="L9" href="#L9">9</a> <em class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em> +<a class="jxr_linenumber" name="L10" href="#L10">10</a> <em class="jxr_comment"> *</em> +<a class="jxr_linenumber" name="L11" href="#L11">11</a> <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em> +<a class="jxr_linenumber" name="L12" href="#L12">12</a> <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em> +<a class="jxr_linenumber" name="L13" href="#L13">13</a> <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em> +<a class="jxr_linenumber" name="L14" href="#L14">14</a> <em class="jxr_comment"> * See the License for the specific language governing permissions and</em> +<a class="jxr_linenumber" name="L15" href="#L15">15</a> <em class="jxr_comment"> * limitations under the License.</em> +<a class="jxr_linenumber" name="L16" href="#L16">16</a> <em class="jxr_comment"> */</em> +<a class="jxr_linenumber" name="L17" href="#L17">17</a> <strong class="jxr_keyword">package</strong> org.apache.commons.csv.bugs; +<a class="jxr_linenumber" name="L18" href="#L18">18</a> +<a class="jxr_linenumber" name="L19" href="#L19">19</a> <strong class="jxr_keyword">import</strong> java.io.BufferedReader; +<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong class="jxr_keyword">import</strong> java.io.IOException; +<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong class="jxr_keyword">import</strong> java.io.InputStream; +<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> java.io.InputStreamReader; +<a class="jxr_linenumber" name="L23" href="#L23">23</a> <strong class="jxr_keyword">import</strong> java.io.Reader; +<a class="jxr_linenumber" name="L24" href="#L24">24</a> +<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> org.apache.commons.csv.CSVFormat; +<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">import</strong> org.apache.commons.csv.CSVParser; +<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">import</strong> org.apache.commons.csv.CSVRecord; +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">import</strong> org.apache.commons.csv.QuoteMode; +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">import</strong> org.junit.Assert; +<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">import</strong> org.junit.Test; +<a class="jxr_linenumber" name="L31" href="#L31">31</a> +<a class="jxr_linenumber" name="L32" href="#L32">32</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/csv/bugs/JiraCsv167Test.html">JiraCsv167Test</a> { +<a class="jxr_linenumber" name="L33" href="#L33">33</a> +<a class="jxr_linenumber" name="L34" href="#L34">34</a> @Test +<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> parse() <strong class="jxr_keyword">throws</strong> IOException { +<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">final</strong> BufferedReader br = <strong class="jxr_keyword">new</strong> BufferedReader(getTestInput()); +<a class="jxr_linenumber" name="L37" href="#L37">37</a> String s = <strong class="jxr_keyword">null</strong>; +<a class="jxr_linenumber" name="L38" href="#L38">38</a> <strong class="jxr_keyword">int</strong> totcomment = 0; +<a class="jxr_linenumber" name="L39" href="#L39">39</a> <strong class="jxr_keyword">int</strong> totrecs = 0; +<a class="jxr_linenumber" name="L40" href="#L40">40</a> <strong class="jxr_keyword">boolean</strong> lastWasComment = false; +<a class="jxr_linenumber" name="L41" href="#L41">41</a> <strong class="jxr_keyword">while</strong>((s=br.readLine()) != <strong class="jxr_keyword">null</strong>) { +<a class="jxr_linenumber" name="L42" href="#L42">42</a> <strong class="jxr_keyword">if</strong> (s.startsWith(<span class="jxr_string">"#"</span>)) { +<a class="jxr_linenumber" name="L43" href="#L43">43</a> <strong class="jxr_keyword">if</strong> (!lastWasComment) { <em class="jxr_comment">// comments are merged</em> +<a class="jxr_linenumber" name="L44" href="#L44">44</a> totcomment++; +<a class="jxr_linenumber" name="L45" href="#L45">45</a> } +<a class="jxr_linenumber" name="L46" href="#L46">46</a> lastWasComment = <strong class="jxr_keyword">true</strong>; +<a class="jxr_linenumber" name="L47" href="#L47">47</a> } <strong class="jxr_keyword">else</strong> { +<a class="jxr_linenumber" name="L48" href="#L48">48</a> totrecs++; +<a class="jxr_linenumber" name="L49" href="#L49">49</a> lastWasComment = false; +<a class="jxr_linenumber" name="L50" href="#L50">50</a> } +<a class="jxr_linenumber" name="L51" href="#L51">51</a> } +<a class="jxr_linenumber" name="L52" href="#L52">52</a> br.close(); +<a class="jxr_linenumber" name="L53" href="#L53">53</a> CSVFormat format = CSVFormat.DEFAULT; +<a class="jxr_linenumber" name="L54" href="#L54">54</a> <em class="jxr_comment">//</em> +<a class="jxr_linenumber" name="L55" href="#L55">55</a> format = format.withAllowMissingColumnNames(false); +<a class="jxr_linenumber" name="L56" href="#L56">56</a> format = format.withCommentMarker('#'); +<a class="jxr_linenumber" name="L57" href="#L57">57</a> format = format.withDelimiter(','); +<a class="jxr_linenumber" name="L58" href="#L58">58</a> format = format.withEscape('\\'); +<a class="jxr_linenumber" name="L59" href="#L59">59</a> format = format.withHeader(<span class="jxr_string">"author"</span>, <span class="jxr_string">"title"</span>, <span class="jxr_string">"publishDate"</span>); +<a class="jxr_linenumber" name="L60" href="#L60">60</a> format = format.withHeaderComments(<span class="jxr_string">"headerComment"</span>); +<a class="jxr_linenumber" name="L61" href="#L61">61</a> format = format.withNullString(<span class="jxr_string">"NULL"</span>); +<a class="jxr_linenumber" name="L62" href="#L62">62</a> format = format.withIgnoreEmptyLines(<strong class="jxr_keyword">true</strong>); +<a class="jxr_linenumber" name="L63" href="#L63">63</a> format = format.withIgnoreSurroundingSpaces(<strong class="jxr_keyword">true</strong>); +<a class="jxr_linenumber" name="L64" href="#L64">64</a> format = format.withQuote('"'); +<a class="jxr_linenumber" name="L65" href="#L65">65</a> format = format.withQuoteMode(QuoteMode.ALL); +<a class="jxr_linenumber" name="L66" href="#L66">66</a> format = format.withRecordSeparator('\n'); +<a class="jxr_linenumber" name="L67" href="#L67">67</a> format = format.withSkipHeaderRecord(false); +<a class="jxr_linenumber" name="L68" href="#L68">68</a> <em class="jxr_comment">//</em> +<a class="jxr_linenumber" name="L69" href="#L69">69</a> <strong class="jxr_keyword">final</strong> CSVParser parser = format.parse(getTestInput()); +<a class="jxr_linenumber" name="L70" href="#L70">70</a> <strong class="jxr_keyword">int</strong> comments = 0; +<a class="jxr_linenumber" name="L71" href="#L71">71</a> <strong class="jxr_keyword">int</strong> records = 0; +<a class="jxr_linenumber" name="L72" href="#L72">72</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> CSVRecord csvRecord : parser) { +<a class="jxr_linenumber" name="L73" href="#L73">73</a> records++; +<a class="jxr_linenumber" name="L74" href="#L74">74</a> <strong class="jxr_keyword">if</strong> (csvRecord.hasComment()) { +<a class="jxr_linenumber" name="L75" href="#L75">75</a> comments++; +<a class="jxr_linenumber" name="L76" href="#L76">76</a> } +<a class="jxr_linenumber" name="L77" href="#L77">77</a> } +<a class="jxr_linenumber" name="L78" href="#L78">78</a> <em class="jxr_comment">// Comment lines are concatenated, in this example 4 lines become 2 comments.</em> +<a class="jxr_linenumber" name="L79" href="#L79">79</a> Assert.assertEquals(totcomment, comments); +<a class="jxr_linenumber" name="L80" href="#L80">80</a> Assert.assertEquals(totrecs, records); <em class="jxr_comment">// records includes the header</em> +<a class="jxr_linenumber" name="L81" href="#L81">81</a> } +<a class="jxr_linenumber" name="L82" href="#L82">82</a> +<a class="jxr_linenumber" name="L83" href="#L83">83</a> <strong class="jxr_keyword">private</strong> Reader getTestInput() { +<a class="jxr_linenumber" name="L84" href="#L84">84</a> <strong class="jxr_keyword">final</strong> InputStream is = ClassLoader.getSystemClassLoader().getResourceAsStream(<span class="jxr_string">"csv-167/sample1.csv"</span>); +<a class="jxr_linenumber" name="L85" href="#L85">85</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> InputStreamReader(is); +<a class="jxr_linenumber" name="L86" href="#L86">86</a> } +<a class="jxr_linenumber" name="L87" href="#L87">87</a> } +</pre> +<hr/> +<div id="footer">Copyright © 2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +</body> +</html> \ No newline at end of file
Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/bugs/package-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/bugs/package-frame.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/bugs/package-frame.html Sun May 29 02:48:43 2016 @@ -0,0 +1,27 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons CSV 1.4 Reference Package org.apache.commons.csv.bugs</title> + <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> + </head> + <body> + + <h3> + <a href="package-summary.html" target="classFrame">org.apache.commons.csv.bugs</a> + </h3> + + <h3>Classes</h3> + + <ul> + <li> + <a href="JiraCsv164Test.html" target="classFrame">JiraCsv164Test</a> + </li> + <li> + <a href="JiraCsv167Test.html" target="classFrame">JiraCsv167Test</a> + </li> + </ul> + + </body> +</html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/bugs/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/bugs/package-summary.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/bugs/package-summary.html Sun May 29 02:48:43 2016 @@ -0,0 +1,74 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons CSV 1.4 Reference Package org.apache.commons.csv.bugs</title> + <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> + </head> + <body> + <div class="overview"> + <ul> + <li> + <a href="../../../../../overview-summary.html">Overview</a> + </li> + <li class="selected">Package</li> + </ul> + </div> + <div class="framenoframe"> + <ul> + <li> + <a href="../../../../../index.html" target="_top">FRAMES</a> + </li> + <li> + <a href="package-summary.html" target="_top">NO FRAMES</a> + </li> + </ul> + </div> + + <h2>Package org.apache.commons.csv.bugs</h2> + + <table class="summary"> + <thead> + <tr> + <th>Class Summary</th> + </tr> + </thead> + <tbody> + <tr> + <td> + <a href="JiraCsv164Test.html" target="classFrame">JiraCsv164Test</a> + </td> + </tr> + <tr> + <td> + <a href="JiraCsv167Test.html" target="classFrame">JiraCsv167Test</a> + </td> + </tr> + </tbody> + </table> + + <div class="overview"> + <ul> + <li> + <a href="../../../../../overview-summary.html">Overview</a> + </li> + <li class="selected">Package</li> + </ul> + </div> + <div class="framenoframe"> + <ul> + <li> + <a href="../../../../../index.html" target="_top">FRAMES</a> + </li> + <li> + <a href="package-summary.html" target="_top">NO FRAMES</a> + </li> + </ul> + </div> + <hr /> + <div id="footer"> + Copyright © 2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. + </div> + </body> +</html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/package-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/package-frame.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/package-frame.html Sun May 29 02:48:43 2016 @@ -0,0 +1,78 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons CSV 1.4 Reference Package org.apache.commons.csv</title> + <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" /> + </head> + <body> + + <h3> + <a href="package-summary.html" target="classFrame">org.apache.commons.csv</a> + </h3> + + <h3>Classes</h3> + + <ul> + <li> + <a href="AssertionsTest.html" target="classFrame">AssertionsTest</a> + </li> + <li> + <a href="CSVBenchmark.html" target="classFrame">CSVBenchmark</a> + </li> + <li> + <a href="CSVFileParserTest.html" target="classFrame">CSVFileParserTest</a> + </li> + <li> + <a href="CSVFormatPredefinedTest.html" target="classFrame">CSVFormatPredefinedTest</a> + </li> + <li> + <a href="CSVFormatTest.html" target="classFrame">CSVFormatTest</a> + </li> + <li> + <a href="CSVParserTest.html" target="classFrame">CSVParserTest</a> + </li> + <li> + <a href="CSVPrinterTest.html" target="classFrame">CSVPrinterTest</a> + </li> + <li> + <a href="CSVRecordTest.html" target="classFrame">CSVRecordTest</a> + </li> + <li> + <a href="CSVBenchmark.html" target="classFrame">CountingReaderCallback</a> + </li> + <li> + <a href="CSVFormatTest.html" target="classFrame">EmptyEnum</a> + </li> + <li> + <a href="CSVRecordTest.html" target="classFrame">EnumFixture</a> + </li> + <li> + <a href="ExtendedBufferedReaderTest.html" target="classFrame">ExtendedBufferedReaderTest</a> + </li> + <li> + <a href="CSVFormatTest.html" target="classFrame">Header</a> + </li> + <li> + <a href="LexerTest.html" target="classFrame">LexerTest</a> + </li> + <li> + <a href="PerformanceTest.html" target="classFrame">PerformanceTest</a> + </li> + <li> + <a href="PerformanceTest.html" target="classFrame">Stats</a> + </li> + <li> + <a href="TokenMatchers.html" target="classFrame">TokenMatchers</a> + </li> + <li> + <a href="TokenMatchersTest.html" target="classFrame">TokenMatchersTest</a> + </li> + <li> + <a href="Utils.html" target="classFrame">Utils</a> + </li> + </ul> + + </body> +</html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/package-summary.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/package-summary.html Sun May 29 02:48:43 2016 @@ -0,0 +1,159 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons CSV 1.4 Reference Package org.apache.commons.csv</title> + <link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="style" /> + </head> + <body> + <div class="overview"> + <ul> + <li> + <a href="../../../../overview-summary.html">Overview</a> + </li> + <li class="selected">Package</li> + </ul> + </div> + <div class="framenoframe"> + <ul> + <li> + <a href="../../../../index.html" target="_top">FRAMES</a> + </li> + <li> + <a href="package-summary.html" target="_top">NO FRAMES</a> + </li> + </ul> + </div> + + <h2>Package org.apache.commons.csv</h2> + + <table class="summary"> + <thead> + <tr> + <th>Class Summary</th> + </tr> + </thead> + <tbody> + <tr> + <td> + <a href="AssertionsTest.html" target="classFrame">AssertionsTest</a> + </td> + </tr> + <tr> + <td> + <a href="CSVBenchmark.html" target="classFrame">CSVBenchmark</a> + </td> + </tr> + <tr> + <td> + <a href="CSVFileParserTest.html" target="classFrame">CSVFileParserTest</a> + </td> + </tr> + <tr> + <td> + <a href="CSVFormatPredefinedTest.html" target="classFrame">CSVFormatPredefinedTest</a> + </td> + </tr> + <tr> + <td> + <a href="CSVFormatTest.html" target="classFrame">CSVFormatTest</a> + </td> + </tr> + <tr> + <td> + <a href="CSVParserTest.html" target="classFrame">CSVParserTest</a> + </td> + </tr> + <tr> + <td> + <a href="CSVPrinterTest.html" target="classFrame">CSVPrinterTest</a> + </td> + </tr> + <tr> + <td> + <a href="CSVRecordTest.html" target="classFrame">CSVRecordTest</a> + </td> + </tr> + <tr> + <td> + <a href="CSVBenchmark.html" target="classFrame">CountingReaderCallback</a> + </td> + </tr> + <tr> + <td> + <a href="CSVFormatTest.html" target="classFrame">EmptyEnum</a> + </td> + </tr> + <tr> + <td> + <a href="CSVRecordTest.html" target="classFrame">EnumFixture</a> + </td> + </tr> + <tr> + <td> + <a href="ExtendedBufferedReaderTest.html" target="classFrame">ExtendedBufferedReaderTest</a> + </td> + </tr> + <tr> + <td> + <a href="CSVFormatTest.html" target="classFrame">Header</a> + </td> + </tr> + <tr> + <td> + <a href="LexerTest.html" target="classFrame">LexerTest</a> + </td> + </tr> + <tr> + <td> + <a href="PerformanceTest.html" target="classFrame">PerformanceTest</a> + </td> + </tr> + <tr> + <td> + <a href="PerformanceTest.html" target="classFrame">Stats</a> + </td> + </tr> + <tr> + <td> + <a href="TokenMatchers.html" target="classFrame">TokenMatchers</a> + </td> + </tr> + <tr> + <td> + <a href="TokenMatchersTest.html" target="classFrame">TokenMatchersTest</a> + </td> + </tr> + <tr> + <td> + <a href="Utils.html" target="classFrame">Utils</a> + </td> + </tr> + </tbody> + </table> + + <div class="overview"> + <ul> + <li> + <a href="../../../../overview-summary.html">Overview</a> + </li> + <li class="selected">Package</li> + </ul> + </div> + <div class="framenoframe"> + <ul> + <li> + <a href="../../../../index.html" target="_top">FRAMES</a> + </li> + <li> + <a href="package-summary.html" target="_top">NO FRAMES</a> + </li> + </ul> + </div> + <hr /> + <div id="footer"> + Copyright © 2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. + </div> + </body> +</html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/perf/PerformanceTest.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/perf/PerformanceTest.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/perf/PerformanceTest.html Sun May 29 02:48:43 2016 @@ -0,0 +1,145 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> +<title>PerformanceTest xref</title> +<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../../testapidocs/org/apache/commons/csv/perf/PerformanceTest.html">View Javadoc</a></div><pre> +<a class="jxr_linenumber" name="L1" href="#L1">1</a> <em class="jxr_comment">/*</em> +<a class="jxr_linenumber" name="L2" href="#L2">2</a> <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em> +<a class="jxr_linenumber" name="L3" href="#L3">3</a> <em class="jxr_comment"> * contributor license agreements. See the NOTICE file distributed with</em> +<a class="jxr_linenumber" name="L4" href="#L4">4</a> <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em> +<a class="jxr_linenumber" name="L5" href="#L5">5</a> <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em> +<a class="jxr_linenumber" name="L6" href="#L6">6</a> <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em> +<a class="jxr_linenumber" name="L7" href="#L7">7</a> <em class="jxr_comment"> * the License. You may obtain a copy of the License at</em> +<a class="jxr_linenumber" name="L8" href="#L8">8</a> <em class="jxr_comment"> *</em> +<a class="jxr_linenumber" name="L9" href="#L9">9</a> <em class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em> +<a class="jxr_linenumber" name="L10" href="#L10">10</a> <em class="jxr_comment"> *</em> +<a class="jxr_linenumber" name="L11" href="#L11">11</a> <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em> +<a class="jxr_linenumber" name="L12" href="#L12">12</a> <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em> +<a class="jxr_linenumber" name="L13" href="#L13">13</a> <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em> +<a class="jxr_linenumber" name="L14" href="#L14">14</a> <em class="jxr_comment"> * See the License for the specific language governing permissions and</em> +<a class="jxr_linenumber" name="L15" href="#L15">15</a> <em class="jxr_comment"> * limitations under the License.</em> +<a class="jxr_linenumber" name="L16" href="#L16">16</a> <em class="jxr_comment"> */</em> +<a class="jxr_linenumber" name="L17" href="#L17">17</a> +<a class="jxr_linenumber" name="L18" href="#L18">18</a> <strong class="jxr_keyword">package</strong> org.apache.commons.csv.perf; +<a class="jxr_linenumber" name="L19" href="#L19">19</a> +<a class="jxr_linenumber" name="L20" href="#L20">20</a> <strong class="jxr_keyword">import</strong> java.io.BufferedReader; +<a class="jxr_linenumber" name="L21" href="#L21">21</a> <strong class="jxr_keyword">import</strong> java.io.File; +<a class="jxr_linenumber" name="L22" href="#L22">22</a> <strong class="jxr_keyword">import</strong> java.io.FileInputStream; +<a class="jxr_linenumber" name="L23" href="#L23">23</a> <strong class="jxr_keyword">import</strong> java.io.FileNotFoundException; +<a class="jxr_linenumber" name="L24" href="#L24">24</a> <strong class="jxr_keyword">import</strong> java.io.FileOutputStream; +<a class="jxr_linenumber" name="L25" href="#L25">25</a> <strong class="jxr_keyword">import</strong> java.io.FileReader; +<a class="jxr_linenumber" name="L26" href="#L26">26</a> <strong class="jxr_keyword">import</strong> java.io.IOException; +<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">import</strong> java.io.InputStream; +<a class="jxr_linenumber" name="L28" href="#L28">28</a> <strong class="jxr_keyword">import</strong> java.io.OutputStream; +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">import</strong> java.io.Reader; +<a class="jxr_linenumber" name="L30" href="#L30">30</a> <strong class="jxr_keyword">import</strong> java.util.zip.GZIPInputStream; +<a class="jxr_linenumber" name="L31" href="#L31">31</a> +<a class="jxr_linenumber" name="L32" href="#L32">32</a> <strong class="jxr_keyword">import</strong> org.apache.commons.csv.CSVFormat; +<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">import</strong> org.apache.commons.csv.CSVRecord; +<a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong class="jxr_keyword">import</strong> org.apache.commons.io.IOUtils; +<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">import</strong> org.junit.BeforeClass; +<a class="jxr_linenumber" name="L36" href="#L36">36</a> <strong class="jxr_keyword">import</strong> org.junit.Test; +<a class="jxr_linenumber" name="L37" href="#L37">37</a> +<a class="jxr_linenumber" name="L38" href="#L38">38</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L39" href="#L39">39</a> <em class="jxr_javadoccomment"> * Tests performance.</em> +<a class="jxr_linenumber" name="L40" href="#L40">40</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L41" href="#L41">41</a> <em class="jxr_javadoccomment"> * To run this test, use: mvn test -Dtest=PeformanceTest</em> +<a class="jxr_linenumber" name="L42" href="#L42">42</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L43" href="#L43">43</a> <em class="jxr_javadoccomment"> * @version $Id: PerformanceTest.java 1592639 2014-05-05 22:03:17Z sebb $</em> +<a class="jxr_linenumber" name="L44" href="#L44">44</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L45" href="#L45">45</a> @SuppressWarnings(<span class="jxr_string">"boxing"</span>) <em class="jxr_comment">// test code</em> +<a class="jxr_linenumber" name="L46" href="#L46">46</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../../org/apache/commons/csv/PerformanceTest.html">PerformanceTest</a> { +<a class="jxr_linenumber" name="L47" href="#L47">47</a> +<a class="jxr_linenumber" name="L48" href="#L48">48</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">int</strong> max = 10; +<a class="jxr_linenumber" name="L49" href="#L49">49</a> +<a class="jxr_linenumber" name="L50" href="#L50">50</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">final</strong> File BIG_FILE = <strong class="jxr_keyword">new</strong> File(System.getProperty(<span class="jxr_string">"java.io.tmpdir"</span>), <span class="jxr_string">"worldcitiespop.txt"</span>); +<a class="jxr_linenumber" name="L51" href="#L51">51</a> +<a class="jxr_linenumber" name="L52" href="#L52">52</a> @BeforeClass +<a class="jxr_linenumber" name="L53" href="#L53">53</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> setUpClass() <strong class="jxr_keyword">throws</strong> FileNotFoundException, IOException { +<a class="jxr_linenumber" name="L54" href="#L54">54</a> <strong class="jxr_keyword">if</strong> (BIG_FILE.exists()) { +<a class="jxr_linenumber" name="L55" href="#L55">55</a> System.out.println(String.format(<span class="jxr_string">"Found test fixture %s: %,d bytes."</span>, BIG_FILE, BIG_FILE.length())); +<a class="jxr_linenumber" name="L56" href="#L56">56</a> <strong class="jxr_keyword">return</strong>; +<a class="jxr_linenumber" name="L57" href="#L57">57</a> } +<a class="jxr_linenumber" name="L58" href="#L58">58</a> System.out.println(<span class="jxr_string">"Decompressing test fixture "</span> + BIG_FILE + <span class="jxr_string">"..."</span>); +<a class="jxr_linenumber" name="L59" href="#L59">59</a> <strong class="jxr_keyword">final</strong> InputStream input = <strong class="jxr_keyword">new</strong> GZIPInputStream(<strong class="jxr_keyword">new</strong> FileInputStream(<span class="jxr_string">"src/test/resources/perf/worldcitiespop.txt.gz"</span>)); +<a class="jxr_linenumber" name="L60" href="#L60">60</a> <strong class="jxr_keyword">final</strong> OutputStream output = <strong class="jxr_keyword">new</strong> FileOutputStream(BIG_FILE); +<a class="jxr_linenumber" name="L61" href="#L61">61</a> IOUtils.copy(input, output); +<a class="jxr_linenumber" name="L62" href="#L62">62</a> System.out.println(String.format(<span class="jxr_string">"Decompressed test fixture %s: %,d bytes."</span>, BIG_FILE, BIG_FILE.length())); +<a class="jxr_linenumber" name="L63" href="#L63">63</a> input.close(); +<a class="jxr_linenumber" name="L64" href="#L64">64</a> output.close(); +<a class="jxr_linenumber" name="L65" href="#L65">65</a> } +<a class="jxr_linenumber" name="L66" href="#L66">66</a> +<a class="jxr_linenumber" name="L67" href="#L67">67</a> <strong class="jxr_keyword">private</strong> BufferedReader getBufferedReader() <strong class="jxr_keyword">throws</strong> IOException { +<a class="jxr_linenumber" name="L68" href="#L68">68</a> <strong class="jxr_keyword">return</strong> <strong class="jxr_keyword">new</strong> BufferedReader(<strong class="jxr_keyword">new</strong> FileReader(BIG_FILE)); +<a class="jxr_linenumber" name="L69" href="#L69">69</a> } +<a class="jxr_linenumber" name="L70" href="#L70">70</a> +<a class="jxr_linenumber" name="L71" href="#L71">71</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> parse(<strong class="jxr_keyword">final</strong> Reader in, <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> traverseColumns) <strong class="jxr_keyword">throws</strong> IOException { +<a class="jxr_linenumber" name="L72" href="#L72">72</a> <strong class="jxr_keyword">final</strong> CSVFormat format = CSVFormat.DEFAULT.withIgnoreSurroundingSpaces(false); +<a class="jxr_linenumber" name="L73" href="#L73">73</a> <strong class="jxr_keyword">long</strong> recordCount = 0; +<a class="jxr_linenumber" name="L74" href="#L74">74</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">final</strong> CSVRecord record : format.parse(in)) { +<a class="jxr_linenumber" name="L75" href="#L75">75</a> recordCount++; +<a class="jxr_linenumber" name="L76" href="#L76">76</a> <strong class="jxr_keyword">if</strong> (traverseColumns) { +<a class="jxr_linenumber" name="L77" href="#L77">77</a> <strong class="jxr_keyword">for</strong> (@SuppressWarnings(<span class="jxr_string">"unused"</span>) <strong class="jxr_keyword">final</strong> String value : record) { +<a class="jxr_linenumber" name="L78" href="#L78">78</a> <em class="jxr_comment">// do nothing for now</em> +<a class="jxr_linenumber" name="L79" href="#L79">79</a> } +<a class="jxr_linenumber" name="L80" href="#L80">80</a> } +<a class="jxr_linenumber" name="L81" href="#L81">81</a> } +<a class="jxr_linenumber" name="L82" href="#L82">82</a> <strong class="jxr_keyword">return</strong> recordCount; +<a class="jxr_linenumber" name="L83" href="#L83">83</a> } +<a class="jxr_linenumber" name="L84" href="#L84">84</a> +<a class="jxr_linenumber" name="L85" href="#L85">85</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">void</strong> println(<strong class="jxr_keyword">final</strong> String s) { +<a class="jxr_linenumber" name="L86" href="#L86">86</a> System.out.println(s); +<a class="jxr_linenumber" name="L87" href="#L87">87</a> } +<a class="jxr_linenumber" name="L88" href="#L88">88</a> +<a class="jxr_linenumber" name="L89" href="#L89">89</a> <strong class="jxr_keyword">private</strong> <strong class="jxr_keyword">long</strong> readAll(<strong class="jxr_keyword">final</strong> BufferedReader in) <strong class="jxr_keyword">throws</strong> IOException { +<a class="jxr_linenumber" name="L90" href="#L90">90</a> <strong class="jxr_keyword">long</strong> count = 0; +<a class="jxr_linenumber" name="L91" href="#L91">91</a> <strong class="jxr_keyword">while</strong> (in.readLine() != <strong class="jxr_keyword">null</strong>) { +<a class="jxr_linenumber" name="L92" href="#L92">92</a> count++; +<a class="jxr_linenumber" name="L93" href="#L93">93</a> } +<a class="jxr_linenumber" name="L94" href="#L94">94</a> <strong class="jxr_keyword">return</strong> count; +<a class="jxr_linenumber" name="L95" href="#L95">95</a> } +<a class="jxr_linenumber" name="L96" href="#L96">96</a> +<a class="jxr_linenumber" name="L97" href="#L97">97</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">long</strong> testParseBigFile(<strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">boolean</strong> traverseColumns) <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L98" href="#L98">98</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> startMillis = System.currentTimeMillis(); +<a class="jxr_linenumber" name="L99" href="#L99">99</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> count = <strong class="jxr_keyword">this</strong>.parse(<strong class="jxr_keyword">this</strong>.getBufferedReader(), traverseColumns); +<a class="jxr_linenumber" name="L100" href="#L100">100</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> totalMillis = System.currentTimeMillis() - startMillis; +<a class="jxr_linenumber" name="L101" href="#L101">101</a> <strong class="jxr_keyword">this</strong>.println(String.format(<span class="jxr_string">"File parsed in %,d milliseconds with Commons CSV: %,d lines."</span>, totalMillis, count)); +<a class="jxr_linenumber" name="L102" href="#L102">102</a> <strong class="jxr_keyword">return</strong> totalMillis; +<a class="jxr_linenumber" name="L103" href="#L103">103</a> } +<a class="jxr_linenumber" name="L104" href="#L104">104</a> +<a class="jxr_linenumber" name="L105" href="#L105">105</a> @Test +<a class="jxr_linenumber" name="L106" href="#L106">106</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testParseBigFileRepeat() <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L107" href="#L107">107</a> <strong class="jxr_keyword">long</strong> bestTime = Long.MAX_VALUE; +<a class="jxr_linenumber" name="L108" href="#L108">108</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < <strong class="jxr_keyword">this</strong>.max; i++) { +<a class="jxr_linenumber" name="L109" href="#L109">109</a> bestTime = Math.min(<strong class="jxr_keyword">this</strong>.testParseBigFile(false), bestTime); +<a class="jxr_linenumber" name="L110" href="#L110">110</a> } +<a class="jxr_linenumber" name="L111" href="#L111">111</a> <strong class="jxr_keyword">this</strong>.println(String.format(<span class="jxr_string">"Best time out of %,d is %,d milliseconds."</span>, <strong class="jxr_keyword">this</strong>.max, bestTime)); +<a class="jxr_linenumber" name="L112" href="#L112">112</a> } +<a class="jxr_linenumber" name="L113" href="#L113">113</a> +<a class="jxr_linenumber" name="L114" href="#L114">114</a> @Test +<a class="jxr_linenumber" name="L115" href="#L115">115</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">void</strong> testReadBigFile() <strong class="jxr_keyword">throws</strong> Exception { +<a class="jxr_linenumber" name="L116" href="#L116">116</a> <strong class="jxr_keyword">long</strong> bestTime = Long.MAX_VALUE; +<a class="jxr_linenumber" name="L117" href="#L117">117</a> <strong class="jxr_keyword">for</strong> (<strong class="jxr_keyword">int</strong> i = 0; i < <strong class="jxr_keyword">this</strong>.max; i++) { +<a class="jxr_linenumber" name="L118" href="#L118">118</a> <strong class="jxr_keyword">final</strong> BufferedReader in = <strong class="jxr_keyword">this</strong>.getBufferedReader(); +<a class="jxr_linenumber" name="L119" href="#L119">119</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> startMillis = System.currentTimeMillis(); +<a class="jxr_linenumber" name="L120" href="#L120">120</a> <strong class="jxr_keyword">long</strong> count = 0; +<a class="jxr_linenumber" name="L121" href="#L121">121</a> <strong class="jxr_keyword">try</strong> { +<a class="jxr_linenumber" name="L122" href="#L122">122</a> count = <strong class="jxr_keyword">this</strong>.readAll(in); +<a class="jxr_linenumber" name="L123" href="#L123">123</a> } <strong class="jxr_keyword">finally</strong> { +<a class="jxr_linenumber" name="L124" href="#L124">124</a> in.close(); +<a class="jxr_linenumber" name="L125" href="#L125">125</a> } +<a class="jxr_linenumber" name="L126" href="#L126">126</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">long</strong> totalMillis = System.currentTimeMillis() - startMillis; +<a class="jxr_linenumber" name="L127" href="#L127">127</a> bestTime = Math.min(totalMillis, bestTime); +<a class="jxr_linenumber" name="L128" href="#L128">128</a> <strong class="jxr_keyword">this</strong>.println(String.format(<span class="jxr_string">"File read in %,d milliseconds: %,d lines."</span>, totalMillis, count)); +<a class="jxr_linenumber" name="L129" href="#L129">129</a> } +<a class="jxr_linenumber" name="L130" href="#L130">130</a> <strong class="jxr_keyword">this</strong>.println(String.format(<span class="jxr_string">"Best time out of %,d is %,d milliseconds."</span>, <strong class="jxr_keyword">this</strong>.max, bestTime)); +<a class="jxr_linenumber" name="L131" href="#L131">131</a> } +<a class="jxr_linenumber" name="L132" href="#L132">132</a> } +</pre> +<hr/> +<div id="footer">Copyright © 2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +</body> +</html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/perf/package-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/perf/package-frame.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/perf/package-frame.html Sun May 29 02:48:43 2016 @@ -0,0 +1,24 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons CSV 1.4 Reference Package org.apache.commons.csv.perf</title> + <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> + </head> + <body> + + <h3> + <a href="package-summary.html" target="classFrame">org.apache.commons.csv.perf</a> + </h3> + + <h3>Classes</h3> + + <ul> + <li> + <a href="PerformanceTest.html" target="classFrame">PerformanceTest</a> + </li> + </ul> + + </body> +</html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/perf/package-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/perf/package-summary.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/org/apache/commons/csv/perf/package-summary.html Sun May 29 02:48:43 2016 @@ -0,0 +1,69 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons CSV 1.4 Reference Package org.apache.commons.csv.perf</title> + <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="style" /> + </head> + <body> + <div class="overview"> + <ul> + <li> + <a href="../../../../../overview-summary.html">Overview</a> + </li> + <li class="selected">Package</li> + </ul> + </div> + <div class="framenoframe"> + <ul> + <li> + <a href="../../../../../index.html" target="_top">FRAMES</a> + </li> + <li> + <a href="package-summary.html" target="_top">NO FRAMES</a> + </li> + </ul> + </div> + + <h2>Package org.apache.commons.csv.perf</h2> + + <table class="summary"> + <thead> + <tr> + <th>Class Summary</th> + </tr> + </thead> + <tbody> + <tr> + <td> + <a href="PerformanceTest.html" target="classFrame">PerformanceTest</a> + </td> + </tr> + </tbody> + </table> + + <div class="overview"> + <ul> + <li> + <a href="../../../../../overview-summary.html">Overview</a> + </li> + <li class="selected">Package</li> + </ul> + </div> + <div class="framenoframe"> + <ul> + <li> + <a href="../../../../../index.html" target="_top">FRAMES</a> + </li> + <li> + <a href="package-summary.html" target="_top">NO FRAMES</a> + </li> + </ul> + </div> + <hr /> + <div id="footer"> + Copyright © 2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. + </div> + </body> +</html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/overview-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/overview-frame.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/overview-frame.html Sun May 29 02:48:43 2016 @@ -0,0 +1,30 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons CSV 1.4 Reference</title> + <link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" /> + </head> + <body> + + <h3> + <a href="allclasses-frame.html" target="packageFrame">All Classes</a> + </h3> + + <h3>Packages</h3> + + <ul> + <li> + <a href="org/apache/commons/csv/package-frame.html" target="packageFrame">org.apache.commons.csv</a> + </li> + <li> + <a href="org/apache/commons/csv/bugs/package-frame.html" target="packageFrame">org.apache.commons.csv.bugs</a> + </li> + <li> + <a href="org/apache/commons/csv/perf/package-frame.html" target="packageFrame">org.apache.commons.csv.perf</a> + </li> + </ul> + + </body> +</html> Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/overview-summary.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/overview-summary.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/overview-summary.html Sun May 29 02:48:43 2016 @@ -0,0 +1,76 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons CSV 1.4 Reference</title> + <link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" /> + </head> + <body> + <div class="overview"> + <ul> + <li class="selected">Overview</li> + <li>Package</li> + </ul> + </div> + <div class="framenoframe"> + <ul> + <li> + <a href="index.html" target="_top">FRAMES</a> + </li> + <li> + <a href="overview-summary.html" target="_top">NO FRAMES</a> + </li> + </ul> + </div> + + <h2>Apache Commons CSV 1.4 Reference</h2> + + <table class="summary"> + <thead> + <tr> + <th>Packages</th> + </tr> + </thead> + <tbody> + <tr> + <td> + <a href="org/apache/commons/csv/package-summary.html">org.apache.commons.csv</a> + </td> + </tr> + <tr> + <td> + <a href="org/apache/commons/csv/bugs/package-summary.html">org.apache.commons.csv.bugs</a> + </td> + </tr> + <tr> + <td> + <a href="org/apache/commons/csv/perf/package-summary.html">org.apache.commons.csv.perf</a> + </td> + </tr> + </tbody> + </table> + + <div class="overview"> + <ul> + <li class="selected">Overview</li> + <li>Package</li> + </ul> + </div> + <div class="framenoframe"> + <ul> + <li> + <a href="index.html" target="_top">FRAMES</a> + </li> + <li> + <a href="overview-summary.html" target="_top">NO FRAMES</a> + </li> + </ul> + </div> + + <hr /> + <div id="footer"> + Copyright © 2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved. + </div> + </body> +</html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/stylesheet.css ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/stylesheet.css (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref-test/stylesheet.css Sun May 29 02:48:43 2016 @@ -0,0 +1,114 @@ +/* Javadoc style sheet */ +/* Define colors, fonts and other style attributes here to override the defaults */ +body { + background-color: #fff; + font-family: Arial, Helvetica, sans-serif; +} + +a:link { + color: #00f; +} +a:visited { + color: #00a; +} + +a:active, a:hover { + color: #f30 !important; +} + +ul, li { + list-style-type:none; + margin:0; + padding:0; +} + +table td { + padding: 3px; + border: 1px solid #000; +} +table { + width:100%; + border: 1px solid #000; + border-collapse: collapse; +} + +div.overview { + background-color:#ddd; + padding: 4px 4px 4px 0; +} +div.overview li, div.framenoframe li { + display: inline; +} +div.framenoframe { + text-align: center; + font-size: x-small; +} +div.framenoframe li { + margin: 0 3px 0 3px; +} +div.overview li { + margin:3px 3px 0 3px; + padding: 4px; +} +li.selected { + background-color:#888; + color: #fff; + font-weight: bold; +} + +table.summary { + margin-bottom: 20px; +} +table.summary td, table.summary th { + font-weight: bold; + text-align: left; + padding: 3px; +} +table.summary th { + background-color:#036; + color: #fff; +} +table.summary td { + background-color:#eee; + border: 1px solid black; +} + +em { + color: #A00; +} +em.comment { + color: #390; +} +.string { + color: #009; +} + +#overview { + padding:2px; +} + +hr { + height: 1px; + color: #000; +} + +/* JXR style sheet */ +.jxr_comment +{ + color: #390; +} + +.jxr_javadoccomment +{ + color: #A00; +} + +.jxr_string +{ + color: #009; +} + +.jxr_keyword +{ + color: #000; +} \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref/allclasses-frame.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref/allclasses-frame.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref/allclasses-frame.html Sun May 29 02:48:43 2016 @@ -0,0 +1,53 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xml:lang="en" lang="en"> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>All Classes</title> + <link rel="stylesheet" type="text/css" href="stylesheet.css" title="style" /> + </head> + <body> + + <h3>All Classes</h3> + + <ul> + <li> + <a href="org/apache/commons/csv/Assertions.html" target="classFrame">Assertions</a> + </li> + <li> + <a href="org/apache/commons/csv/CSVFormat.html" target="classFrame">CSVFormat</a> + </li> + <li> + <a href="org/apache/commons/csv/CSVParser.html" target="classFrame">CSVParser</a> + </li> + <li> + <a href="org/apache/commons/csv/CSVPrinter.html" target="classFrame">CSVPrinter</a> + </li> + <li> + <a href="org/apache/commons/csv/CSVRecord.html" target="classFrame">CSVRecord</a> + </li> + <li> + <a href="org/apache/commons/csv/Constants.html" target="classFrame">Constants</a> + </li> + <li> + <a href="org/apache/commons/csv/ExtendedBufferedReader.html" target="classFrame">ExtendedBufferedReader</a> + </li> + <li> + <a href="org/apache/commons/csv/Lexer.html" target="classFrame">Lexer</a> + </li> + <li> + <a href="org/apache/commons/csv/CSVFormat.html" target="classFrame">Predefined</a> + </li> + <li> + <a href="org/apache/commons/csv/QuoteMode.html" target="classFrame">QuoteMode</a> + </li> + <li> + <a href="org/apache/commons/csv/Token.html" target="classFrame">Token</a> + </li> + <li> + <a href="org/apache/commons/csv/Token.html" target="classFrame">Type</a> + </li> + </ul> + + </body> + </html> \ No newline at end of file Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref/index.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref/index.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref/index.html Sun May 29 02:48:43 2016 @@ -0,0 +1,24 @@ + +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> +<html xml:lang="en" lang="en"> +<!-- this is a JXR report set --> + <head> + <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> + <title>Apache Commons CSV 1.4 Reference</title> + </head> + <frameset cols="20%,80%"> + <frameset rows="30%,70%"> + <frame src="overview-frame.html" name="packageListFrame" /> + <frame src="allclasses-frame.html" name="packageFrame" /> + </frameset> + <frame src="overview-summary.html" name="classFrame" /> + <noframes> + <body> + <h1>Frame Alert</h1> + <p> + You don't have frames. Go <a href="overview-summary.html">here</a> + </p> + </body> + </noframes> + </frameset> +</html> Added: websites/production/commons/content/proper/commons-csv/archives/1.4/xref/org/apache/commons/csv/Assertions.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/archives/1.4/xref/org/apache/commons/csv/Assertions.html (added) +++ websites/production/commons/content/proper/commons-csv/archives/1.4/xref/org/apache/commons/csv/Assertions.html Sun May 29 02:48:43 2016 @@ -0,0 +1,51 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head><meta http-equiv="content-type" content="text/html; charset=UTF-8" /> +<title>Assertions xref</title> +<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" /> +</head> +<body> +<div id="overview"><a href="../../../../../apidocs/org/apache/commons/csv/Assertions.html">View Javadoc</a></div><pre> +<a class="jxr_linenumber" name="L1" href="#L1">1</a> <em class="jxr_comment">/*</em> +<a class="jxr_linenumber" name="L2" href="#L2">2</a> <em class="jxr_comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</em> +<a class="jxr_linenumber" name="L3" href="#L3">3</a> <em class="jxr_comment"> * contributor license agreements. See the NOTICE file distributed with</em> +<a class="jxr_linenumber" name="L4" href="#L4">4</a> <em class="jxr_comment"> * this work for additional information regarding copyright ownership.</em> +<a class="jxr_linenumber" name="L5" href="#L5">5</a> <em class="jxr_comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</em> +<a class="jxr_linenumber" name="L6" href="#L6">6</a> <em class="jxr_comment"> * (the "License"); you may not use this file except in compliance with</em> +<a class="jxr_linenumber" name="L7" href="#L7">7</a> <em class="jxr_comment"> * the License. You may obtain a copy of the License at</em> +<a class="jxr_linenumber" name="L8" href="#L8">8</a> <em class="jxr_comment"> *</em> +<a class="jxr_linenumber" name="L9" href="#L9">9</a> <em class="jxr_comment"> * <a href="http://www.apache.org/licenses/LICENSE-2." target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.</a>0</em> +<a class="jxr_linenumber" name="L10" href="#L10">10</a> <em class="jxr_comment"> *</em> +<a class="jxr_linenumber" name="L11" href="#L11">11</a> <em class="jxr_comment"> * Unless required by applicable law or agreed to in writing, software</em> +<a class="jxr_linenumber" name="L12" href="#L12">12</a> <em class="jxr_comment"> * distributed under the License is distributed on an "AS IS" BASIS,</em> +<a class="jxr_linenumber" name="L13" href="#L13">13</a> <em class="jxr_comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em> +<a class="jxr_linenumber" name="L14" href="#L14">14</a> <em class="jxr_comment"> * See the License for the specific language governing permissions and</em> +<a class="jxr_linenumber" name="L15" href="#L15">15</a> <em class="jxr_comment"> * limitations under the License.</em> +<a class="jxr_linenumber" name="L16" href="#L16">16</a> <em class="jxr_comment"> */</em> +<a class="jxr_linenumber" name="L17" href="#L17">17</a> +<a class="jxr_linenumber" name="L18" href="#L18">18</a> <strong class="jxr_keyword">package</strong> org.apache.commons.csv; +<a class="jxr_linenumber" name="L19" href="#L19">19</a> +<a class="jxr_linenumber" name="L20" href="#L20">20</a> <em class="jxr_javadoccomment">/**</em> +<a class="jxr_linenumber" name="L21" href="#L21">21</a> <em class="jxr_javadoccomment"> * Utility class for input parameter validation.</em> +<a class="jxr_linenumber" name="L22" href="#L22">22</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L23" href="#L23">23</a> <em class="jxr_javadoccomment"> * TODO Replace usage with {@link Objects} when we switch to Java 7.</em> +<a class="jxr_linenumber" name="L24" href="#L24">24</a> <em class="jxr_javadoccomment"> *</em> +<a class="jxr_linenumber" name="L25" href="#L25">25</a> <em class="jxr_javadoccomment"> * @version $Id: Assertions.java 1742459 2016-05-05 19:43:57Z britter $</em> +<a class="jxr_linenumber" name="L26" href="#L26">26</a> <em class="jxr_javadoccomment"> */</em> +<a class="jxr_linenumber" name="L27" href="#L27">27</a> <strong class="jxr_keyword">final</strong> <strong class="jxr_keyword">class</strong> <a href="../../../../org/apache/commons/csv/Assertions.html">Assertions</a> { +<a class="jxr_linenumber" name="L28" href="#L28">28</a> +<a class="jxr_linenumber" name="L29" href="#L29">29</a> <strong class="jxr_keyword">private</strong> <a href="../../../../org/apache/commons/csv/Assertions.html">Assertions</a>() { +<a class="jxr_linenumber" name="L30" href="#L30">30</a> <em class="jxr_comment">// can not be instantiated</em> +<a class="jxr_linenumber" name="L31" href="#L31">31</a> } +<a class="jxr_linenumber" name="L32" href="#L32">32</a> +<a class="jxr_linenumber" name="L33" href="#L33">33</a> <strong class="jxr_keyword">public</strong> <strong class="jxr_keyword">static</strong> <strong class="jxr_keyword">void</strong> notNull(<strong class="jxr_keyword">final</strong> Object parameter, <strong class="jxr_keyword">final</strong> String parameterName) { +<a class="jxr_linenumber" name="L34" href="#L34">34</a> <strong class="jxr_keyword">if</strong> (parameter == <strong class="jxr_keyword">null</strong>) { +<a class="jxr_linenumber" name="L35" href="#L35">35</a> <strong class="jxr_keyword">throw</strong> <strong class="jxr_keyword">new</strong> IllegalArgumentException(<span class="jxr_string">"Parameter '"</span> + parameterName + <span class="jxr_string">"' must not be null!"</span>); +<a class="jxr_linenumber" name="L36" href="#L36">36</a> } +<a class="jxr_linenumber" name="L37" href="#L37">37</a> } +<a class="jxr_linenumber" name="L38" href="#L38">38</a> } +</pre> +<hr/> +<div id="footer">Copyright © 2016 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</div> +</body> +</html> \ No newline at end of file