Propchange: websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVFormat.html ------------------------------------------------------------------------------ svn:eol-style = native
Propchange: websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVFormat.html ------------------------------------------------------------------------------ svn:keywords = Id Added: websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVLexer.html ============================================================================== --- websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVLexer.html (added) +++ websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVLexer.html Thu Mar 21 15:20:15 2013 @@ -0,0 +1,433 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html> +<head> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/> +<title>Coverage Report</title> +<link title="Style" type="text/css" rel="stylesheet" href="css/main.css"/> +<script type="text/javascript" src="js/popup.js"></script> +</head> +<body> +<h5>Coverage Report - org.apache.commons.csv.CSVLexer</h5> +<div class="separator"> </div> +<table class="report"> +<thead><tr> <td class="heading">Classes in this File</td> <td class="heading"><a class="dfn" href="help.html" onclick="popupwindow('help.html'); return false;">Line Coverage</a></td> <td class="heading"><a class="dfn" href="help.html" onclick="popupwindow('help.html'); return false;">Branch Coverage</a></td> <td class="heading"><a class="dfn" href="help.html" onclick="popupwindow('help.html'); return false;">Complexity</a></td></tr></thead> + <tr><td><a href="org.apache.commons.csv.CSVLexer.html">CSVLexer</a></td><td><table cellpadding="0px" cellspacing="0px" class="percentgraph"><tr class="percentgraph"><td align="right" class="percentgraph" width="40">97%</td><td class="percentgraph"><div class="percentgraph"><div class="greenbar" style="width:97px"><span class="text">77/79</span></div></div></td></tr></table></td><td><table cellpadding="0px" cellspacing="0px" class="percentgraph"><tr class="percentgraph"><td align="right" class="percentgraph" width="40">96%</td><td class="percentgraph"><div class="percentgraph"><div class="greenbar" style="width:96px"><span class="text">58/60</span></div></div></td></tr></table></td><td class="value"><span class="hidden">11.25;</span>11.25</td></tr> + +</table> +<div class="separator"> </div> +<table cellspacing="0" cellpadding="0" class="src"> +<tr> <td class="numLine"> 1</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">/*</span></pre></td></tr> +<tr> <td class="numLine"> 2</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one or more</span></pre></td></tr> +<tr> <td class="numLine"> 3</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * contributor license agreements. See the NOTICE file distributed with</span></pre></td></tr> +<tr> <td class="numLine"> 4</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * this work for additional information regarding copyright ownership.</span></pre></td></tr> +<tr> <td class="numLine"> 5</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * The ASF licenses this file to You under the Apache License, Version 2.0</span></pre></td></tr> +<tr> <td class="numLine"> 6</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * (the "License"); you may not use this file except in compliance with</span></pre></td></tr> +<tr> <td class="numLine"> 7</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * the License. You may obtain a copy of the License at</span></pre></td></tr> +<tr> <td class="numLine"> 8</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> *</span></pre></td></tr> +<tr> <td class="numLine"> 9</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></pre></td></tr> +<tr> <td class="numLine"> 10</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> *</span></pre></td></tr> +<tr> <td class="numLine"> 11</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * Unless required by applicable law or agreed to in writing, software</span></pre></td></tr> +<tr> <td class="numLine"> 12</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * distributed under the License is distributed on an "AS IS" BASIS,</span></pre></td></tr> +<tr> <td class="numLine"> 13</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</span></pre></td></tr> +<tr> <td class="numLine"> 14</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * See the License for the specific language governing permissions and</span></pre></td></tr> +<tr> <td class="numLine"> 15</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * limitations under the License.</span></pre></td></tr> +<tr> <td class="numLine"> 16</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> */</span></pre></td></tr> +<tr> <td class="numLine"> 17</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 18</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">package</span> org.apache.commons.csv;</pre></td></tr> +<tr> <td class="numLine"> 19</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 20</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">import</span> <span class="keyword">static</span> org.apache.commons.csv.Token.Type.COMMENT;</pre></td></tr> +<tr> <td class="numLine"> 21</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">import</span> <span class="keyword">static</span> org.apache.commons.csv.Token.Type.EOF;</pre></td></tr> +<tr> <td class="numLine"> 22</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">import</span> <span class="keyword">static</span> org.apache.commons.csv.Token.Type.EORECORD;</pre></td></tr> +<tr> <td class="numLine"> 23</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">import</span> <span class="keyword">static</span> org.apache.commons.csv.Token.Type.INVALID;</pre></td></tr> +<tr> <td class="numLine"> 24</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">import</span> <span class="keyword">static</span> org.apache.commons.csv.Token.Type.TOKEN;</pre></td></tr> +<tr> <td class="numLine"> 25</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 26</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">import</span> java.io.IOException;</pre></td></tr> +<tr> <td class="numLine"> 27</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 28</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">/**</span></pre></td></tr> +<tr> <td class="numLine"> 29</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> *</span></pre></td></tr> +<tr> <td class="numLine"> 30</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> *</span></pre></td></tr> +<tr> <td class="numLine"> 31</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @version $Id$</span></pre></td></tr> +<tr> <td class="numLine"> 32</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> */</span></pre></td></tr> +<tr> <td class="numLine"> 33</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">final</span> <span class="keyword">class</span> CSVLexer <span class="keyword">extends</span> Lexer {</pre></td></tr> +<tr> <td class="numLine"> 34</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 35</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">/** INTERNAL API. ctor needs to be public so can be called dynamically by PerformanceTest class */</span></pre></td></tr> +<tr> <td class="numLine"> 36</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">public</span> CSVLexer(<span class="keyword">final</span> CSVFormat format, <span class="keyword">final</span> ExtendedBufferedReader in) {</pre></td></tr> +<tr> <td class="numLineCover"> 37</td> <td class="nbHitsCovered"> 30068</td> <td class="src"><pre class="src"> <span class="keyword">super</span>(format, in);</pre></td></tr> +<tr> <td class="numLineCover"> 38</td> <td class="nbHitsCovered"> 30068</td> <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 39</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 40</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">/**</span></pre></td></tr> +<tr> <td class="numLine"> 41</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * Returns the next token.</span></pre></td></tr> +<tr> <td class="numLine"> 42</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <p/></span></pre></td></tr> +<tr> <td class="numLine"> 43</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * A token corresponds to a term, a record change or an end-of-file indicator.</span></pre></td></tr> +<tr> <td class="numLine"> 44</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> *</span></pre></td></tr> +<tr> <td class="numLine"> 45</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @param token</span></pre></td></tr> +<tr> <td class="numLine"> 46</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * an existing Token object to reuse. The caller is responsible to initialize the Token.</span></pre></td></tr> +<tr> <td class="numLine"> 47</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @return the next token found</span></pre></td></tr> +<tr> <td class="numLine"> 48</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @throws java.io.IOException</span></pre></td></tr> +<tr> <td class="numLine"> 49</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * on stream access error</span></pre></td></tr> +<tr> <td class="numLine"> 50</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> */</span></pre></td></tr> +<tr> <td class="numLine"> 51</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> @Override</pre></td></tr> +<tr> <td class="numLine"> 52</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> Token nextToken(<span class="keyword">final</span> Token token) <span class="keyword">throws</span> IOException {</pre></td></tr> +<tr> <td class="numLine"> 53</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 54</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// get the last read char (required for empty line detection)</span></pre></td></tr> +<tr> <td class="numLineCover"> 55</td> <td class="nbHitsCovered"> 180561</td> <td class="src"><pre class="src"> <span class="keyword">int</span> lastChar = in.getLastChar();</pre></td></tr> +<tr> <td class="numLine"> 56</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 57</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// read the next char and set eol</span></pre></td></tr> +<tr> <td class="numLineCover"> 58</td> <td class="nbHitsCovered"> 180561</td> <td class="src"><pre class="src"> <span class="keyword">int</span> c = in.read();</pre></td></tr> +<tr> <td class="numLine"> 59</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">/*</span></pre></td></tr> +<tr> <td class="numLine"> 60</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * Note: The following call will swallow LF if c == CR. But we don't need to know if the last char was CR or LF</span></pre></td></tr> +<tr> <td class="numLine"> 61</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * - they are equivalent here.</span></pre></td></tr> +<tr> <td class="numLine"> 62</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> */</span></pre></td></tr> +<tr> <td class="numLineCover"> 63</td> <td class="nbHitsCovered"> 180561</td> <td class="src"><pre class="src"> <span class="keyword">boolean</span> eol = readEndOfLine(c);</pre></td></tr> +<tr> <td class="numLine"> 64</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 65</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// empty line detection: eol AND (last char was EOL or beginning)</span></pre></td></tr> +<tr> <td class="numLineCover"> 66</td> <td class="nbHitsCovered"><a title="Line 66: Conditional coverage 100% (2/2)."> 180561</a></td> <td class="src"><pre class="src"> <a title="Line 66: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (ignoreEmptyLines) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 67</td> <td class="nbHitsCovered"><a title="Line 67: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> 59974</a></td> <td class="src"><pre class="src"> <a title="Line 67: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> <span class="keyword">while</span> (eol && isStartOfLine(lastChar)) {</a></pre></td></tr> +<tr> <td class="numLine"> 68</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// go on char ahead ...</span></pre></td></tr> +<tr> <td class="numLineCover"> 69</td> <td class="nbHitsCovered"> 36</td> <td class="src"><pre class="src"> lastChar = c;</pre></td></tr> +<tr> <td class="numLineCover"> 70</td> <td class="nbHitsCovered"> 36</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 71</td> <td class="nbHitsCovered"> 36</td> <td class="src"><pre class="src"> eol = readEndOfLine(c);</pre></td></tr> +<tr> <td class="numLine"> 72</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// reached end of file without any content (empty line at the end)</span></pre></td></tr> +<tr> <td class="numLineCover"> 73</td> <td class="nbHitsCovered"><a title="Line 73: Conditional coverage 100% (2/2)."> 36</a></td> <td class="src"><pre class="src"> <a title="Line 73: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 74</td> <td class="nbHitsCovered"> 5</td> <td class="src"><pre class="src"> token.type = EOF;</pre></td></tr> +<tr> <td class="numLine"> 75</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// don't set tkn.isReady here because no content</span></pre></td></tr> +<tr> <td class="numLineCover"> 76</td> <td class="nbHitsCovered"> 5</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> +<tr> <td class="numLine"> 77</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 78</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 79</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 80</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 81</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// did we reach eof during the last iteration already ? EOF</span></pre></td></tr> +<tr> <td class="numLineCover"> 82</td> <td class="nbHitsCovered"><a title="Line 82: Conditional coverage 100% (6/6) [each condition: 100%, 100%, 100%]."> 180556</a></td> <td class="src"><pre class="src"> <a title="Line 82: Conditional coverage 100% (6/6) [each condition: 100%, 100%, 100%]."> <span class="keyword">if</span> (isEndOfFile(lastChar) || (!isDelimiter(lastChar) && isEndOfFile(c))) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 83</td> <td class="nbHitsCovered"> 30058</td> <td class="src"><pre class="src"> token.type = EOF;</pre></td></tr> +<tr> <td class="numLine"> 84</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// don't set tkn.isReady here because no content</span></pre></td></tr> +<tr> <td class="numLineCover"> 85</td> <td class="nbHitsCovered"> 30058</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> +<tr> <td class="numLine"> 86</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 87</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLineCover"> 88</td> <td class="nbHitsCovered"><a title="Line 88: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> 150498</a></td> <td class="src"><pre class="src"> <a title="Line 88: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> <span class="keyword">if</span> (isStartOfLine(lastChar) && isCommentStart(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 89</td> <td class="nbHitsCovered"> 26</td> <td class="src"><pre class="src"> <span class="keyword">final</span> String comment = in.readLine().trim();</pre></td></tr> +<tr> <td class="numLineCover"> 90</td> <td class="nbHitsCovered"> 26</td> <td class="src"><pre class="src"> token.content.append(comment);</pre></td></tr> +<tr> <td class="numLineCover"> 91</td> <td class="nbHitsCovered"> 26</td> <td class="src"><pre class="src"> token.type = COMMENT;</pre></td></tr> +<tr> <td class="numLineCover"> 92</td> <td class="nbHitsCovered"> 26</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> +<tr> <td class="numLine"> 93</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 94</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 95</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// important: make sure a new char gets consumed in each iteration</span></pre></td></tr> +<tr> <td class="numLineCover"> 96</td> <td class="nbHitsCovered"><a title="Line 96: Conditional coverage 100% (2/2)."> 300943</a></td> <td class="src"><pre class="src"> <a title="Line 96: Conditional coverage 100% (2/2)."> <span class="keyword">while</span> (token.type == INVALID) {</a></pre></td></tr> +<tr> <td class="numLine"> 97</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// ignore whitespaces at beginning of a token</span></pre></td></tr> +<tr> <td class="numLineCover"> 98</td> <td class="nbHitsCovered"><a title="Line 98: Conditional coverage 100% (2/2)."> 150472</a></td> <td class="src"><pre class="src"> <a title="Line 98: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (ignoreSurroundingSpaces) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 99</td> <td class="nbHitsCovered"><a title="Line 99: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> 120</a></td> <td class="src"><pre class="src"> <a title="Line 99: Conditional coverage 100% (4/4) [each condition: 100%, 100%]."> <span class="keyword">while</span> (isWhitespace(c) && !eol) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 100</td> <td class="nbHitsCovered"> 32</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 101</td> <td class="nbHitsCovered"> 32</td> <td class="src"><pre class="src"> eol = readEndOfLine(c);</pre></td></tr> +<tr> <td class="numLine"> 102</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 103</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 104</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 105</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// ok, start of token reached: encapsulated, or token</span></pre></td></tr> +<tr> <td class="numLineCover"> 106</td> <td class="nbHitsCovered"><a title="Line 106: Conditional coverage 100% (2/2)."> 150472</a></td> <td class="src"><pre class="src"> <a title="Line 106: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isDelimiter(c)) {</a></pre></td></tr> +<tr> <td class="numLine"> 107</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// empty token return TOKEN("")</span></pre></td></tr> +<tr> <td class="numLineCover"> 108</td> <td class="nbHitsCovered"> 1781</td> <td class="src"><pre class="src"> token.type = TOKEN;</pre></td></tr> +<tr> <td class="numLineCover"> 109</td> <td class="nbHitsCovered"><a title="Line 109: Conditional coverage 100% (2/2)."> 148691</a></td> <td class="src"><pre class="src"> <a title="Line 109: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (eol) {</a></pre></td></tr> +<tr> <td class="numLine"> 110</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// empty token return EORECORD("")</span></pre></td></tr> +<tr> <td class="numLine"> 111</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// noop: tkn.content.append("");</span></pre></td></tr> +<tr> <td class="numLineCover"> 112</td> <td class="nbHitsCovered"> 2488</td> <td class="src"><pre class="src"> token.type = EORECORD;</pre></td></tr> +<tr> <td class="numLineCover"> 113</td> <td class="nbHitsCovered"><a title="Line 113: Conditional coverage 100% (2/2)."> 146203</a></td> <td class="src"><pre class="src"> <a title="Line 113: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isQuoteChar(c)) {</a></pre></td></tr> +<tr> <td class="numLine"> 114</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// consume encapsulated token</span></pre></td></tr> +<tr> <td class="numLineCover"> 115</td> <td class="nbHitsCovered"> 92346</td> <td class="src"><pre class="src"> encapsulatedTokenLexer(token);</pre></td></tr> +<tr> <td class="numLineCover"> 116</td> <td class="nbHitsCovered"><a title="Line 116: Conditional coverage 100% (2/2)."> 53857</a></td> <td class="src"><pre class="src"> <a title="Line 116: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> +<tr> <td class="numLine"> 117</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// end of file return EOF()</span></pre></td></tr> +<tr> <td class="numLine"> 118</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// noop: tkn.content.append("");</span></pre></td></tr> +<tr> <td class="numLineCover"> 119</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> token.type = EOF;</pre></td></tr> +<tr> <td class="numLineCover"> 120</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> token.isReady = <span class="keyword">true</span>; <span class="comment">// there is data at EOF</span></pre></td></tr> +<tr> <td class="numLine"> 121</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> } <span class="keyword">else</span> {</pre></td></tr> +<tr> <td class="numLine"> 122</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// next token must be a simple token</span></pre></td></tr> +<tr> <td class="numLine"> 123</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// add removed blanks when not ignoring whitespace chars...</span></pre></td></tr> +<tr> <td class="numLineCover"> 124</td> <td class="nbHitsCovered"> 53851</td> <td class="src"><pre class="src"> simpleTokenLexer(token, c);</pre></td></tr> +<tr> <td class="numLine"> 125</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 126</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLineCover"> 127</td> <td class="nbHitsCovered"> 150471</td> <td class="src"><pre class="src"> <span class="keyword">return</span> token;</pre></td></tr> +<tr> <td class="numLine"> 128</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 129</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 130</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">/**</span></pre></td></tr> +<tr> <td class="numLine"> 131</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * A simple token lexer</span></pre></td></tr> +<tr> <td class="numLine"> 132</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <p/></span></pre></td></tr> +<tr> <td class="numLine"> 133</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * Simple token are tokens which are not surrounded by encapsulators. A simple token might contain escaped</span></pre></td></tr> +<tr> <td class="numLine"> 134</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * delimiters (as \, or \;). The token is finished when one of the following conditions become true:</span></pre></td></tr> +<tr> <td class="numLine"> 135</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <ul></span></pre></td></tr> +<tr> <td class="numLine"> 136</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <li>end of line has been reached (EORECORD)</li></span></pre></td></tr> +<tr> <td class="numLine"> 137</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <li>end of stream has been reached (EOF)</li></span></pre></td></tr> +<tr> <td class="numLine"> 138</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <li>an unescaped delimiter has been reached (TOKEN)</li></span></pre></td></tr> +<tr> <td class="numLine"> 139</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * </ul></span></pre></td></tr> +<tr> <td class="numLine"> 140</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> *</span></pre></td></tr> +<tr> <td class="numLine"> 141</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @param tkn</span></pre></td></tr> +<tr> <td class="numLine"> 142</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * the current token</span></pre></td></tr> +<tr> <td class="numLine"> 143</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @param c</span></pre></td></tr> +<tr> <td class="numLine"> 144</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * the current character</span></pre></td></tr> +<tr> <td class="numLine"> 145</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @return the filled token</span></pre></td></tr> +<tr> <td class="numLine"> 146</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @throws IOException</span></pre></td></tr> +<tr> <td class="numLine"> 147</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * on stream access error</span></pre></td></tr> +<tr> <td class="numLine"> 148</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> */</span></pre></td></tr> +<tr> <td class="numLine"> 149</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">private</span> Token simpleTokenLexer(<span class="keyword">final</span> Token tkn, <span class="keyword">int</span> c) <span class="keyword">throws</span> IOException {</pre></td></tr> +<tr> <td class="numLine"> 150</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// Faster to use while(true)+break than while(tkn.type == INVALID)</span></pre></td></tr> +<tr> <td class="numLine"> 151</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">while</span> (<span class="keyword">true</span>) {</pre></td></tr> +<tr> <td class="numLineCover"> 152</td> <td class="nbHitsCovered"><a title="Line 152: Conditional coverage 100% (2/2)."> 597864</a></td> <td class="src"><pre class="src"> <a title="Line 152: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (readEndOfLine(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 153</td> <td class="nbHitsCovered"> 27254</td> <td class="src"><pre class="src"> tkn.type = EORECORD;</pre></td></tr> +<tr> <td class="numLineCover"> 154</td> <td class="nbHitsCovered"> 27254</td> <td class="src"><pre class="src"> <span class="keyword">break</span>;</pre></td></tr> +<tr> <td class="numLineCover"> 155</td> <td class="nbHitsCovered"><a title="Line 155: Conditional coverage 100% (2/2)."> 570610</a></td> <td class="src"><pre class="src"> <a title="Line 155: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 156</td> <td class="nbHitsCovered"> 20</td> <td class="src"><pre class="src"> tkn.type = EOF;</pre></td></tr> +<tr> <td class="numLineCover"> 157</td> <td class="nbHitsCovered"> 20</td> <td class="src"><pre class="src"> tkn.isReady = <span class="keyword">true</span>; <span class="comment">// There is data at EOF</span></pre></td></tr> +<tr> <td class="numLineCover"> 158</td> <td class="nbHitsCovered"> 20</td> <td class="src"><pre class="src"> <span class="keyword">break</span>;</pre></td></tr> +<tr> <td class="numLineCover"> 159</td> <td class="nbHitsCovered"><a title="Line 159: Conditional coverage 100% (2/2)."> 570590</a></td> <td class="src"><pre class="src"> <a title="Line 159: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isDelimiter(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 160</td> <td class="nbHitsCovered"> 26576</td> <td class="src"><pre class="src"> tkn.type = TOKEN;</pre></td></tr> +<tr> <td class="numLineCover"> 161</td> <td class="nbHitsCovered"> 26576</td> <td class="src"><pre class="src"> <span class="keyword">break</span>;</pre></td></tr> +<tr> <td class="numLineCover"> 162</td> <td class="nbHitsCovered"><a title="Line 162: Conditional coverage 100% (2/2)."> 544014</a></td> <td class="src"><pre class="src"> <a title="Line 162: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEscape(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 163</td> <td class="nbHitsCovered"> 106721</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) readEscape());</pre></td></tr> +<tr> <td class="numLineCover"> 164</td> <td class="nbHitsCovered"> 106720</td> <td class="src"><pre class="src"> c = in.read(); <span class="comment">// continue</span></pre></td></tr> +<tr> <td class="numLine"> 165</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> } <span class="keyword">else</span> {</pre></td></tr> +<tr> <td class="numLineCover"> 166</td> <td class="nbHitsCovered"> 437293</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) c);</pre></td></tr> +<tr> <td class="numLineCover"> 167</td> <td class="nbHitsCovered"> 437293</td> <td class="src"><pre class="src"> c = in.read(); <span class="comment">// continue</span></pre></td></tr> +<tr> <td class="numLine"> 168</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 169</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 170</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLineCover"> 171</td> <td class="nbHitsCovered"><a title="Line 171: Conditional coverage 100% (2/2)."> 53850</a></td> <td class="src"><pre class="src"> <a title="Line 171: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (ignoreSurroundingSpaces) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 172</td> <td class="nbHitsCovered"> 59</td> <td class="src"><pre class="src"> trimTrailingSpaces(tkn.content);</pre></td></tr> +<tr> <td class="numLine"> 173</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 174</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLineCover"> 175</td> <td class="nbHitsCovered"> 53850</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> +<tr> <td class="numLine"> 176</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 177</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 178</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">/**</span></pre></td></tr> +<tr> <td class="numLine"> 179</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * An encapsulated token lexer</span></pre></td></tr> +<tr> <td class="numLine"> 180</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <p/></span></pre></td></tr> +<tr> <td class="numLine"> 181</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * Encapsulated tokens are surrounded by the given encapsulating-string. The encapsulator itself might be included</span></pre></td></tr> +<tr> <td class="numLine"> 182</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * in the token using a doubling syntax (as "", '') or using escaping (as in \", \'). Whitespaces before and after</span></pre></td></tr> +<tr> <td class="numLine"> 183</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * an encapsulated token are ignored. The token is finished when one of the following conditions become true:</span></pre></td></tr> +<tr> <td class="numLine"> 184</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <ul></span></pre></td></tr> +<tr> <td class="numLine"> 185</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <li>an unescaped encapsulator has been reached, and is followed by optional whitespace then:</li></span></pre></td></tr> +<tr> <td class="numLine"> 186</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <ul></span></pre></td></tr> +<tr> <td class="numLine"> 187</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <li>delimiter (TOKEN)</li></span></pre></td></tr> +<tr> <td class="numLine"> 188</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <li>end of line (EORECORD)</li></span></pre></td></tr> +<tr> <td class="numLine"> 189</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * </ul></span></pre></td></tr> +<tr> <td class="numLine"> 190</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * <li>end of stream has been reached (EOF)</li> </ul></span></pre></td></tr> +<tr> <td class="numLine"> 191</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> *</span></pre></td></tr> +<tr> <td class="numLine"> 192</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @param tkn</span></pre></td></tr> +<tr> <td class="numLine"> 193</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * the current token</span></pre></td></tr> +<tr> <td class="numLine"> 194</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @return a valid token object</span></pre></td></tr> +<tr> <td class="numLine"> 195</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * @throws IOException</span></pre></td></tr> +<tr> <td class="numLine"> 196</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> * on invalid state: EOF before closing encapsulator or invalid character before delimiter or EOL</span></pre></td></tr> +<tr> <td class="numLine"> 197</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment"> */</span></pre></td></tr> +<tr> <td class="numLine"> 198</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">private</span> Token encapsulatedTokenLexer(<span class="keyword">final</span> Token tkn) <span class="keyword">throws</span> IOException {</pre></td></tr> +<tr> <td class="numLine"> 199</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// save current line number in case needed for IOE</span></pre></td></tr> +<tr> <td class="numLineCover"> 200</td> <td class="nbHitsCovered"> 92346</td> <td class="src"><pre class="src"> <span class="keyword">final</span> <span class="keyword">long</span> startLineNumber = getLineNumber();</pre></td></tr> +<tr> <td class="numLine"> 201</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">int</span> c;</pre></td></tr> +<tr> <td class="numLine"> 202</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">while</span> (<span class="keyword">true</span>) {</pre></td></tr> +<tr> <td class="numLineCover"> 203</td> <td class="nbHitsCovered"> 1079626</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLine"> 204</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLineCover"> 205</td> <td class="nbHitsCovered"><a title="Line 205: Conditional coverage 100% (2/2)."> 1079626</a></td> <td class="src"><pre class="src"> <a title="Line 205: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isEscape(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 206</td> <td class="nbHitsCovered"> 4</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) readEscape());</pre></td></tr> +<tr> <td class="numLineCover"> 207</td> <td class="nbHitsCovered"><a title="Line 207: Conditional coverage 100% (2/2)."> 1079622</a></td> <td class="src"><pre class="src"> <a title="Line 207: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isQuoteChar(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 208</td> <td class="nbHitsCovered"><a title="Line 208: Conditional coverage 100% (2/2)."> 145115</a></td> <td class="src"><pre class="src"> <a title="Line 208: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isQuoteChar(in.lookAhead())) {</a></pre></td></tr> +<tr> <td class="numLine"> 209</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// double or escaped encapsulator -> add single encapsulator to token</span></pre></td></tr> +<tr> <td class="numLineCover"> 210</td> <td class="nbHitsCovered"> 52769</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 211</td> <td class="nbHitsCovered"> 52769</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) c);</pre></td></tr> +<tr> <td class="numLine"> 212</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> } <span class="keyword">else</span> {</pre></td></tr> +<tr> <td class="numLine"> 213</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// token finish mark (encapsulator) reached: ignore whitespace till delimiter</span></pre></td></tr> +<tr> <td class="numLine"> 214</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="keyword">while</span> (<span class="keyword">true</span>) {</pre></td></tr> +<tr> <td class="numLineCover"> 215</td> <td class="nbHitsCovered"> 92355</td> <td class="src"><pre class="src"> c = in.read();</pre></td></tr> +<tr> <td class="numLineCover"> 216</td> <td class="nbHitsCovered"><a title="Line 216: Conditional coverage 100% (2/2)."> 92355</a></td> <td class="src"><pre class="src"> <a title="Line 216: Conditional coverage 100% (2/2)."> <span class="keyword">if</span> (isDelimiter(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 217</td> <td class="nbHitsCovered"> 46812</td> <td class="src"><pre class="src"> tkn.type = TOKEN;</pre></td></tr> +<tr> <td class="numLineCover"> 218</td> <td class="nbHitsCovered"> 46812</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> +<tr> <td class="numLineCover"> 219</td> <td class="nbHitsCovered"><a title="Line 219: Conditional coverage 100% (2/2)."> 45543</a></td> <td class="src"><pre class="src"> <a title="Line 219: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 220</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> tkn.type = EOF;</pre></td></tr> +<tr> <td class="numLineCover"> 221</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> tkn.isReady = <span class="keyword">true</span>; <span class="comment">// There is data at EOF</span></pre></td></tr> +<tr> <td class="numLineCover"> 222</td> <td class="nbHitsCovered"> 6</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> +<tr> <td class="numLineCover"> 223</td> <td class="nbHitsCovered"><a title="Line 223: Conditional coverage 100% (2/2)."> 45537</a></td> <td class="src"><pre class="src"> <a title="Line 223: Conditional coverage 100% (2/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (readEndOfLine(c)) {</a></pre></td></tr> +<tr> <td class="numLineCover"> 224</td> <td class="nbHitsCovered"> 45528</td> <td class="src"><pre class="src"> tkn.type = EORECORD;</pre></td></tr> +<tr> <td class="numLineCover"> 225</td> <td class="nbHitsCovered"> 45528</td> <td class="src"><pre class="src"> <span class="keyword">return</span> tkn;</pre></td></tr> +<tr> <td class="numLineCover"> 226</td> <td class="nbHitsUncovered"><a title="Line 226: Conditional coverage 50% (1/2)."> 9</a></td> <td class="src"><pre class="src"><span class="srcUncovered"> <a title="Line 226: Conditional coverage 50% (1/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (!isWhitespace(c)) {</a></span></pre></td></tr> +<tr> <td class="numLine"> 227</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// error invalid char between token and next delimiter</span></pre></td></tr> +<tr> <td class="numLineCover"> 228</td> <td class="nbHitsUncovered"> 0</td> <td class="src"><pre class="src"><span class="srcUncovered"> <span class="keyword">throw</span> <span class="keyword">new</span> IOException(<span class="string">"(line "</span> + getLineNumber() +</span></pre></td></tr> +<tr> <td class="numLine"> 229</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="string">") invalid char between encapsulated token and delimiter"</span>);</pre></td></tr> +<tr> <td class="numLine"> 230</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 231</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 232</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLineCover"> 233</td> <td class="nbHitsUncovered"><a title="Line 233: Conditional coverage 50% (1/2)."> 934507</a></td> <td class="src"><pre class="src"><span class="srcUncovered"> <a title="Line 233: Conditional coverage 50% (1/2)."> } <span class="keyword">else</span> <span class="keyword">if</span> (isEndOfFile(c)) {</a></span></pre></td></tr> +<tr> <td class="numLine"> 234</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// error condition (end of file before end of token)</span></pre></td></tr> +<tr> <td class="numLineCover"> 235</td> <td class="nbHitsUncovered"> 0</td> <td class="src"><pre class="src"><span class="srcUncovered"> <span class="keyword">throw</span> <span class="keyword">new</span> IOException(<span class="string">"(startline "</span> + startLineNumber +</span></pre></td></tr> +<tr> <td class="numLine"> 236</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="string">") EOF reached before encapsulated token finished"</span>);</pre></td></tr> +<tr> <td class="numLine"> 237</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> } <span class="keyword">else</span> {</pre></td></tr> +<tr> <td class="numLine"> 238</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> <span class="comment">// consume character</span></pre></td></tr> +<tr> <td class="numLineCover"> 239</td> <td class="nbHitsCovered"> 934507</td> <td class="src"><pre class="src"> tkn.content.append((<span class="keyword">char</span>) c);</pre></td></tr> +<tr> <td class="numLine"> 240</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 241</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 242</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +<tr> <td class="numLine"> 243</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> </pre></td></tr> +<tr> <td class="numLine"> 244</td> <td class="nbHits"> </td> + <td class="src"><pre class="src"> }</pre></td></tr> +</table> + +<div class="footer">Report generated by <a href="http://cobertura.sourceforge.net/" target="_top">Cobertura</a> 1.9.4.1 on 3/21/13 11:16 AM.</div> +</body> +</html> \ No newline at end of file Propchange: websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVLexer.html ------------------------------------------------------------------------------ svn:eol-style = native Propchange: websites/production/commons/content/proper/commons-csv/cobertura/org.apache.commons.csv.CSVLexer.html ------------------------------------------------------------------------------ svn:keywords = Id