Added: dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/CSVRecord.html ============================================================================== --- dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/CSVRecord.html (added) +++ dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/CSVRecord.html Sun Feb 2 01:23:05 2020 @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>CSVRecord</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CSV</a> > <a href="index.html" class="el_package">org.apache.commons.csv</a> > <span class="el_class">CSVRecord</span></div><h1>CSVRecord</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class= "sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">54 of 273</td><td class="ctr2">80%</td><td class="bar">1 of 32</td><td class="ctr2">96%</td><td class="ctr1">3</td><td class="ctr2">38</td><td class="ctr1">6 </td><td class="ctr2">48</td><td class="ctr1">2</td><td class="ctr2">22</td></tr></tfoot><tbody><tr><td id="a3"><a href="CSVRecord.java.html#L116" class="el_method">get(String)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="45" height="10" title="24" alt="24"/><img src="../jacoco-resources/greenbar.gif" width="75" height="10" title="40" alt="40"/></td><td class="ctr2" id="c19">62%</td><td class="bar" id="d2"><img src="../jacoco-resources/greenbar.gif" width="80" height="10" title="4" alt="4"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g1">3</td><td class="ctr1" id="h0">3</td><td class="ctr2" id="i0">11</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a20"><a href="CSVRecord.java.html#L320" class="el_method">toString()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/redbar.gif" width="43" height="10" title="23" alt="23"/></td><td class="ctr2" id="c20">0%</ td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g9">1</td><td class="ctr1" id="h1">2</td><td class="ctr2" id="i3">2</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a1"><a href="CSVRecord.java.html#L78" class="el_method">get(Enum)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="11" height="10" title="6" alt="6"/></td><td class="ctr2" id="c21">0%</td><td class="bar" id="d10"/><td class="ctr2" id="e10">n/a</td><td class="ctr1" id="f1">1</td><td class="ctr2" id="g10">1</td><td class="ctr1" id="h2">1</td><td class="ctr2" id="i6">1</td><td class="ctr1" id="j1">1</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a0"><a href="CSVRecord.java.html#L62" class="el_method">CSVRecord(CSVParser, String[], String, long, long)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/redbar.gif" width="1" height="10" title="1" alt="1"/><img src="../jacoco-resourc es/greenbar.gif" width="39" height="10" title="21" alt="21"/></td><td class="ctr2" id="c18">95%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="20" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="1" alt="1"/></td><td class="ctr2" id="e8">50%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g6">2</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i2">7</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a15"><a href="CSVRecord.java.html#L271" class="el_method">putIn(Map)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="73" height="10" title="39" alt="39"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="6" alt="6"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g0">4</td><td class="ctr1" id="h 4">0</td><td class="ctr2" id="i1">8</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a13"><a href="CSVRecord.java.html#L239" class="el_method">isSet(String)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="33" height="10" title="18" alt="18"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d3"><img src="../jacoco-resources/greenbar.gif" width="80" height="10" title="4" alt="4"/></td><td class="ctr2" id="e2">100%</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g2">3</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i7">1</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a10"><a href="CSVRecord.java.html#L215" class="el_method">isConsistent()</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="28" height="10" title="15" alt="15"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d4"><img src="../jacoco-resources/greenbar. gif" width="80" height="10" title="4" alt="4"/></td><td class="ctr2" id="e3">100%</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g3">3</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i4">2</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a11"><a href="CSVRecord.java.html#L227" class="el_method">isMapped(String)</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif" width="24" height="10" title="13" alt="13"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d5"><img src="../jacoco-resources/greenbar.gif" width="80" height="10" title="4" alt="4"/></td><td class="ctr2" id="e4">100%</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g4">3</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i5">2</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a12"><a href="CSVRecord.java.html#L250" class="el_method">isSet(int)</a></td><td class="bar" id="b8"><img src="../jacoco-r esources/greenbar.gif" width="22" height="10" title="12" alt="12"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d6"><img src="../jacoco-resources/greenbar.gif" width="80" height="10" title="4" alt="4"/></td><td class="ctr2" id="e5">100%</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g5">3</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i8">1</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr><tr><td id="a6"><a href="CSVRecord.java.html#L158" class="el_method">getHeaderMapRaw()</a></td><td class="bar" id="b9"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="9" alt="9"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d7"><img src="../jacoco-resources/greenbar.gif" width="40" height="10" title="2" alt="2"/></td><td class="ctr2" id="e6">100%</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g7">2</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i9">1</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr><tr><td id="a19"><a href="CSVRecord.java.html#L309" class="el_method">toMap()</a></td><td class="bar" id="b10"><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="9" alt="9"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d11"/><td class="ctr2" id="e11">n/a</td><td class="ctr1" id="f10">0</td><td class="ctr2" id="g11">1</td><td class="ctr1" id="h10">0</td><td class="ctr2" id="i10">1</td><td class="ctr1" id="j10">0</td><td class="ctr2" id="k10">1</td></tr><tr><td id="a9"><a href="CSVRecord.java.html#L201" class="el_method">hasComment()</a></td><td class="bar" id="b11"><img src="../jacoco-resources/greenbar.gif" width="13" height="10" title="7" alt="7"/></td><td class="ctr2" id="c7">100%</td><td class="bar" id="d8"><img src="../jacoco-resources/greenbar.gif" width="40" height="10" title="2" alt="2"/></td><td class="ctr2" id="e7">100%</td><td class="ctr1" id="f11">0</td><td class="ctr2" id="g8">2</td><td class="ctr1" id ="h11">0</td><td class="ctr2" id="i11">1</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1</td></tr><tr><td id="a2"><a href="CSVRecord.java.html#L89" class="el_method">get(int)</a></td><td class="bar" id="b12"><img src="../jacoco-resources/greenbar.gif" width="9" height="10" title="5" alt="5"/></td><td class="ctr2" id="c8">100%</td><td class="bar" id="d12"/><td class="ctr2" id="e12">n/a</td><td class="ctr1" id="f12">0</td><td class="ctr2" id="g12">1</td><td class="ctr1" id="h12">0</td><td class="ctr2" id="i12">1</td><td class="ctr1" id="j12">0</td><td class="ctr2" id="k12">1</td></tr><tr><td id="a14"><a href="CSVRecord.java.html#L260" class="el_method">iterator()</a></td><td class="bar" id="b13"><img src="../jacoco-resources/greenbar.gif" width="7" height="10" title="4" alt="4"/></td><td class="ctr2" id="c9">100%</td><td class="bar" id="d13"/><td class="ctr2" id="e13">n/a</td><td class="ctr1" id="f13">0</td><td class="ctr2" id="g13">1</td><td class="ctr1" id="h13">0</t d><td class="ctr2" id="i13">1</td><td class="ctr1" id="j13">0</td><td class="ctr2" id="k13">1</td></tr><tr><td id="a16"><a href="CSVRecord.java.html#L289" class="el_method">size()</a></td><td class="bar" id="b14"><img src="../jacoco-resources/greenbar.gif" width="7" height="10" title="4" alt="4"/></td><td class="ctr2" id="c10">100%</td><td class="bar" id="d14"/><td class="ctr2" id="e14">n/a</td><td class="ctr1" id="f14">0</td><td class="ctr2" id="g14">1</td><td class="ctr1" id="h14">0</td><td class="ctr2" id="i14">1</td><td class="ctr1" id="j14">0</td><td class="ctr2" id="k14">1</td></tr><tr><td id="a18"><a href="CSVRecord.java.html#L300" class="el_method">toList()</a></td><td class="bar" id="b15"><img src="../jacoco-resources/greenbar.gif" width="7" height="10" title="4" alt="4"/></td><td class="ctr2" id="c11">100%</td><td class="bar" id="d15"/><td class="ctr2" id="e15">n/a</td><td class="ctr1" id="f15">0</td><td class="ctr2" id="g15">1</td><td class="ctr1" id="h15">0</td><td class ="ctr2" id="i15">1</td><td class="ctr1" id="j15">0</td><td class="ctr2" id="k15">1</td></tr><tr><td id="a17"><a href="CSVRecord.java.html#L43" class="el_method">static {...}</a></td><td class="bar" id="b16"><img src="../jacoco-resources/greenbar.gif" width="7" height="10" title="4" alt="4"/></td><td class="ctr2" id="c12">100%</td><td class="bar" id="d16"/><td class="ctr2" id="e16">n/a</td><td class="ctr1" id="f16">0</td><td class="ctr2" id="g16">1</td><td class="ctr1" id="h16">0</td><td class="ctr2" id="i16">1</td><td class="ctr1" id="j16">0</td><td class="ctr2" id="k16">1</td></tr><tr><td id="a4"><a href="CSVRecord.java.html#L142" class="el_method">getCharacterPosition()</a></td><td class="bar" id="b17"><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="3" alt="3"/></td><td class="ctr2" id="c13">100%</td><td class="bar" id="d17"/><td class="ctr2" id="e17">n/a</td><td class="ctr1" id="f17">0</td><td class="ctr2" id="g17">1</td><td class="ctr1" id="h17">0</td><t d class="ctr2" id="i17">1</td><td class="ctr1" id="j17">0</td><td class="ctr2" id="k17">1</td></tr><tr><td id="a5"><a href="CSVRecord.java.html#L154" class="el_method">getComment()</a></td><td class="bar" id="b18"><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="3" alt="3"/></td><td class="ctr2" id="c14">100%</td><td class="bar" id="d18"/><td class="ctr2" id="e18">n/a</td><td class="ctr1" id="f18">0</td><td class="ctr2" id="g18">1</td><td class="ctr1" id="h18">0</td><td class="ctr2" id="i18">1</td><td class="ctr1" id="j18">0</td><td class="ctr2" id="k18">1</td></tr><tr><td id="a7"><a href="CSVRecord.java.html#L173" class="el_method">getParser()</a></td><td class="bar" id="b19"><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="3" alt="3"/></td><td class="ctr2" id="c15">100%</td><td class="bar" id="d19"/><td class="ctr2" id="e19">n/a</td><td class="ctr1" id="f19">0</td><td class="ctr2" id="g19">1</td><td class="ctr1" id="h19">0</td><td cl ass="ctr2" id="i19">1</td><td class="ctr1" id="j19">0</td><td class="ctr2" id="k19">1</td></tr><tr><td id="a8"><a href="CSVRecord.java.html#L188" class="el_method">getRecordNumber()</a></td><td class="bar" id="b20"><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="3" alt="3"/></td><td class="ctr2" id="c16">100%</td><td class="bar" id="d20"/><td class="ctr2" id="e20">n/a</td><td class="ctr1" id="f20">0</td><td class="ctr2" id="g20">1</td><td class="ctr1" id="h20">0</td><td class="ctr2" id="i20">1</td><td class="ctr1" id="j20">0</td><td class="ctr2" id="k20">1</td></tr><tr><td id="a21"><a href="CSVRecord.java.html#L325" class="el_method">values()</a></td><td class="bar" id="b21"><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="3" alt="3"/></td><td class="ctr2" id="c17">100%</td><td class="bar" id="d21"/><td class="ctr2" id="e21">n/a</td><td class="ctr1" id="f21">0</td><td class="ctr2" id="g21">1</td><td class="ctr1" id="h21">0</td><td cla ss="ctr2" id="i21">1</td><td class="ctr1" id="j21">0</td><td class="ctr2" id="k21">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html> \ No newline at end of file
Added: dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/CSVRecord.java.html ============================================================================== --- dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/CSVRecord.java.html (added) +++ dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/CSVRecord.java.html Sun Feb 2 01:23:05 2020 @@ -0,0 +1,329 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>CSVRecord.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CSV</a> > <a href="index.source.html" class="el_package">org.apache.commons.csv</a> > <span class="el_source">CSVRecord.ja va</span></div><h1>CSVRecord.java</h1><pre class="source lang-java linenums">/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.commons.csv; + +import java.io.Serializable; +import java.util.Arrays; +import java.util.Iterator; +import java.util.LinkedHashMap; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Objects; + +/** + * A CSV record parsed from a CSV file. + * + * <p> + * Note: Support for {@link Serializable} is scheduled to be removed in version 2.0. + * In version 1.8 the mapping between the column header and the column index was + * removed from the serialised state. The class maintains serialization compatibility + * with versions pre-1.8 for the record values; these must be accessed by index + * following deserialization. There will be loss of any functionally linked to the header + * mapping when transferring serialised forms pre-1.8 to 1.8 and vice versa. + * </p> + */ +public final class CSVRecord implements Serializable, Iterable<String> { + +<span class="fc" id="L43"> private static final String[] EMPTY_STRING_ARRAY = new String[0];</span> + + private static final long serialVersionUID = 1L; + + private final long characterPosition; + + /** The accumulated comments (if any) */ + private final String comment; + + /** The record number. */ + private final long recordNumber; + + /** The values of the record */ + private final String[] values; + + /** The parser that originates this record. This is not serialized. */ + private final transient CSVParser parser; + + CSVRecord(final CSVParser parser, final String[] values, final String comment, final long recordNumber, +<span class="fc" id="L62"> final long characterPosition) {</span> +<span class="fc" id="L63"> this.recordNumber = recordNumber;</span> +<span class="pc bpc" id="L64" title="1 of 2 branches missed."> this.values = values != null ? values : EMPTY_STRING_ARRAY;</span> +<span class="fc" id="L65"> this.parser = parser;</span> +<span class="fc" id="L66"> this.comment = comment;</span> +<span class="fc" id="L67"> this.characterPosition = characterPosition;</span> +<span class="fc" id="L68"> }</span> + + /** + * Returns a value by {@link Enum}. + * + * @param e + * an enum + * @return the String at the given enum String + */ + public String get(final Enum<?> e) { +<span class="nc" id="L78"> return get(Objects.toString(e, null));</span> + } + + /** + * Returns a value by index. + * + * @param i + * a column index (0-based) + * @return the String at the given index + */ + public String get(final int i) { +<span class="fc" id="L89"> return values[i];</span> + } + + /** + * Returns a value by name. + * + * <p> + * Note: This requires a field mapping obtained from the original parser. + * A check using {@link #isMapped(String)} should be used to determine if a + * mapping exists from the provided {@code name} to a field index. In this case an + * exception will only be thrown if the record does not contain a field corresponding + * to the mapping, that is the record length is not consistent with the mapping size. + * </p> + * + * @param name + * the name of the column to be retrieved. + * @return the column value, maybe null depending on {@link CSVFormat#getNullString()}. + * @throws IllegalStateException + * if no header mapping was provided + * @throws IllegalArgumentException + * if {@code name} is not mapped or if the record is inconsistent + * @see #isMapped(String) + * @see #isConsistent() + * @see #getParser() + * @see CSVFormat#withNullString(String) + */ + public String get(final String name) { +<span class="fc" id="L116"> final Map<String, Integer> headerMap = getHeaderMapRaw();</span> +<span class="fc bfc" id="L117" title="All 2 branches covered."> if (headerMap == null) {</span> +<span class="fc" id="L118"> throw new IllegalStateException(</span> + "No header mapping was specified, the record values can't be accessed by name"); + } +<span class="fc" id="L121"> final Integer index = headerMap.get(name);</span> +<span class="fc bfc" id="L122" title="All 2 branches covered."> if (index == null) {</span> +<span class="fc" id="L123"> throw new IllegalArgumentException(String.format("Mapping for %s not found, expected one of %s", name,</span> +<span class="fc" id="L124"> headerMap.keySet()));</span> + } + try { +<span class="fc" id="L127"> return values[index.intValue()];</span> +<span class="nc" id="L128"> } catch (final ArrayIndexOutOfBoundsException e) {</span> +<span class="nc" id="L129"> throw new IllegalArgumentException(String.format(</span> + "Index for header '%s' is %d but CSVRecord only has %d values!", name, index, +<span class="nc" id="L131"> Integer.valueOf(values.length)));</span> + } + } + + /** + * Returns the start position of this record as a character position in the source stream. This may or may not + * correspond to the byte position depending on the character set. + * + * @return the position of this record in the source stream. + */ + public long getCharacterPosition() { +<span class="fc" id="L142"> return characterPosition;</span> + } + + /** + * Returns the comment for this record, if any. + * Note that comments are attached to the following record. + * If there is no following record (i.e. the comment is at EOF) + * the comment will be ignored. + * + * @return the comment for this record, or null if no comment for this record is available. + */ + public String getComment() { +<span class="fc" id="L154"> return comment;</span> + } + + private Map<String, Integer> getHeaderMapRaw() { +<span class="fc bfc" id="L158" title="All 2 branches covered."> return parser == null ? null : parser.getHeaderMapRaw();</span> + } + + /** + * Returns the parser. + * + * <p> + * Note: The parser is not part of the serialized state of the record. A null check + * should be used when the record may have originated from a serialized form. + * </p> + * + * @return the parser. + * @since 1.7 + */ + public CSVParser getParser() { +<span class="fc" id="L173"> return parser;</span> + } + + /** + * Returns the number of this record in the parsed CSV file. + * + * <p> + * <strong>ATTENTION:</strong> If your CSV input has multi-line values, the returned number does not correspond to + * the current line number of the parser that created this record. + * </p> + * + * @return the number of this record. + * @see CSVParser#getCurrentLineNumber() + */ + public long getRecordNumber() { +<span class="fc" id="L188"> return recordNumber;</span> + } + + /** + * Checks whether this record has a comment, false otherwise. + * Note that comments are attached to the following record. + * If there is no following record (i.e. the comment is at EOF) + * the comment will be ignored. + * + * @return true if this record has a comment, false otherwise + * @since 1.3 + */ + public boolean hasComment() { +<span class="fc bfc" id="L201" title="All 2 branches covered."> return comment != null;</span> + } + + /** + * Tells whether the record size matches the header size. + * + * <p> + * Returns true if the sizes for this record match and false if not. Some programs can export files that fail this + * test but still produce parsable files. + * </p> + * + * @return true of this record is valid, false if not + */ + public boolean isConsistent() { +<span class="fc" id="L215"> final Map<String, Integer> headerMap = getHeaderMapRaw();</span> +<span class="fc bfc" id="L216" title="All 4 branches covered."> return headerMap == null || headerMap.size() == values.length;</span> + } + + /** + * Checks whether a given column is mapped, i.e. its name has been defined to the parser. + * + * @param name + * the name of the column to be retrieved. + * @return whether a given column is mapped. + */ + public boolean isMapped(final String name) { +<span class="fc" id="L227"> final Map<String, Integer> headerMap = getHeaderMapRaw();</span> +<span class="fc bfc" id="L228" title="All 4 branches covered."> return headerMap != null && headerMap.containsKey(name);</span> + } + + /** + * Checks whether a given columns is mapped and has a value. + * + * @param name + * the name of the column to be retrieved. + * @return whether a given columns is mapped and has a value + */ + public boolean isSet(final String name) { +<span class="fc bfc" id="L239" title="All 4 branches covered."> return isMapped(name) && getHeaderMapRaw().get(name).intValue() < values.length;</span> + } + + /** + * Checks whether a column with given index has a value. + * + * @param index + * a column index (0-based) + * @return whether a column with given index has a value + */ + public boolean isSet(final int index) { +<span class="fc bfc" id="L250" title="All 4 branches covered."> return 0 <= index && index < values.length;</span> + } + + /** + * Returns an iterator over the values of this record. + * + * @return an iterator over the values of this record. + */ + @Override + public Iterator<String> iterator() { +<span class="fc" id="L260"> return toList().iterator();</span> + } + + /** + * Puts all values of this record into the given Map. + * + * @param map + * The Map to populate. + * @return the given map. + */ + <M extends Map<String, String>> M putIn(final M map) { +<span class="fc bfc" id="L271" title="All 2 branches covered."> if (getHeaderMapRaw() == null) {</span> +<span class="fc" id="L272"> return map;</span> + } +<span class="fc bfc" id="L274" title="All 2 branches covered."> for (final Entry<String, Integer> entry : getHeaderMapRaw().entrySet()) {</span> +<span class="fc" id="L275"> final int col = entry.getValue().intValue();</span> +<span class="fc bfc" id="L276" title="All 2 branches covered."> if (col < values.length) {</span> +<span class="fc" id="L277"> map.put(entry.getKey(), values[col]);</span> + } +<span class="fc" id="L279"> }</span> +<span class="fc" id="L280"> return map;</span> + } + + /** + * Returns the number of values in this record. + * + * @return the number of values. + */ + public int size() { +<span class="fc" id="L289"> return values.length;</span> + } + + /** + * Converts the values to a List. + * + * TODO: Maybe make this public? + * + * @return a new List + */ + private List<String> toList() { +<span class="fc" id="L300"> return Arrays.asList(values);</span> + } + + /** + * Copies this record into a new Map of header name to record value. + * + * @return A new Map. The map is empty if the record has no headers. + */ + public Map<String, String> toMap() { +<span class="fc" id="L309"> return putIn(new LinkedHashMap<String, String>(values.length));</span> + } + + /** + * Returns a string representation of the contents of this record. The result is constructed by comment, mapping, + * recordNumber and by passing the internal values array to {@link Arrays#toString(Object[])}. + * + * @return a String representation of this record. + */ + @Override + public String toString() { +<span class="nc" id="L320"> return "CSVRecord [comment='" + comment + "', recordNumber=" + recordNumber + ", values=" +</span> +<span class="nc" id="L321"> Arrays.toString(values) + "]";</span> + } + + String[] values() { +<span class="fc" id="L325"> return values;</span> + } + +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html> \ No newline at end of file Added: dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/Constants.html ============================================================================== --- dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/Constants.html (added) +++ dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/Constants.html Sun Feb 2 01:23:05 2020 @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>Constants</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CSV</a> > <a href="index.html" class="el_package">org.apache.commons.csv</a> > <span class="el_class">Constants</span></div><h1>Constants</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class= "sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">3 of 7</td><td class="ctr2">57%</td><td class="bar">0 of 0</td><td class="ctr2">n/a</td><td class="ctr1">1</td><td class="ctr2">2</td><td class="ctr1">1</td> <td class="ctr2">2</td><td class="ctr1">1</td><td class="ctr2">2</td></tr></tfoot><tbody><tr><td id="a0"><a href="Constants.java.html#L23" class="el_method">Constants()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="90" height="10" title="3" alt="3"/></td><td class="ctr2" id="c1">0%</td><td class="bar" id="d0"/><td class="ctr2" id="e0">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g0">1</td><td class="ctr1" id="h0">1</td><td class="ctr2" id="i0">1</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="Constants.java.html#L41" class="el_method">static {...}</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="4" alt="4"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d1"/><td class="ctr2" id="e1">n/a</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g1">1</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">1</td><td c lass="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html> \ No newline at end of file Added: dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/Constants.java.html ============================================================================== --- dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/Constants.java.html (added) +++ dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/Constants.java.html Sun Feb 2 01:23:05 2020 @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>Constants.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CSV</a> > <a href="index.source.html" class="el_package">org.apache.commons.csv</a> > <span class="el_source">Constants.ja va</span></div><h1>Constants.java</h1><pre class="source lang-java linenums">/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.commons.csv; + +/** + * Constants for this package. + */ +<span class="nc" id="L23">final class Constants {</span> + + static final char BACKSLASH = '\\'; + + static final char BACKSPACE = '\b'; + + static final char COMMA = ','; + + /** + * Starts a comment, the remainder of the line is the comment. + */ + static final char COMMENT = '#'; + + static final char CR = '\r'; + + /** RFC 4180 defines line breaks as CRLF */ + static final String CRLF = "\r\n"; + +<span class="fc" id="L41"> static final Character DOUBLE_QUOTE_CHAR = Character.valueOf('"');</span> + + static final String EMPTY = ""; + + /** The end of stream symbol */ + static final int END_OF_STREAM = -1; + + static final char FF = '\f'; + + static final char LF = '\n'; + + /** + * Unicode line separator. + */ + static final String LINE_SEPARATOR = "\u2028"; + + /** + * Unicode next line. + */ + static final String NEXT_LINE = "\u0085"; + + /** + * Unicode paragraph separator. + */ + static final String PARAGRAPH_SEPARATOR = "\u2029"; + + static final char PIPE = '|'; + + /** ASCII record separator */ + static final char RS = 30; + + static final char SP = ' '; + + static final char TAB = '\t'; + + /** Undefined state for the lookahead char */ + static final int UNDEFINED = -2; + + /** ASCII unit separator */ + static final char US = 31; + +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html> \ No newline at end of file Added: dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/ExtendedBufferedReader.html ============================================================================== --- dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/ExtendedBufferedReader.html (added) +++ dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/ExtendedBufferedReader.html Sun Feb 2 01:23:05 2020 @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>ExtendedBufferedReader</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CSV</a> > <a href="index.html" class="el_package">org.apache.commons.csv</a> > <span class="el_class">ExtendedBufferedReader</span></div><h1>ExtendedBufferedReader</h1><table class="coverage" cellspacing="0" i d="coveragetable"><thead><tr><td class="sortable" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">0 of 191</td><td class="ctr2">100%</td><td class="bar">1 of 32</td><td class="ctr2">96%</td><td class="ctr1">1</td><td class="ctr2">26</td><td class="ctr1">0</td><td class="ctr2">45</td><td class="ctr1">0</td><td class="ctr2">10</td></tr></tfoot><tbody><tr><td id="a8"><a href="ExtendedBufferedReader.java.html#L81" class="el_method">read(char[], int, int)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="81" alt="81"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="7" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="112" height="10" title="15" alt="15"/></td><td class="ctr2" id="e3">93%</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g0">9</td><td class="ctr1" id="h0">0</td><td class="ctr2" id="i0">16</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a7"><a href="ExtendedBufferedReader.java.html#L58" class="el_method">read()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="4 5" height="10" title="31" alt="31"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d2"><img src="../jacoco-resources/greenbar.gif" width="45" height="10" title="6" alt="6"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f1">0</td><td class="ctr2" id="g2">4</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i1">6</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a2"><a href="ExtendedBufferedReader.java.html#L158" class="el_method">getCurrentLineNumber()</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="35" height="10" title="24" alt="24"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d1"><img src="../jacoco-resources/greenbar.gif" width="60" height="10" title="8" alt="8"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g1">5</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i5">3</td><td class="ctr1" id="j2">0</td><td class="ctr 2" id="k2">1</td></tr><tr><td id="a9"><a href="ExtendedBufferedReader.java.html#L122" class="el_method">readLine()</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="29" height="10" title="20" alt="20"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d3"><img src="../jacoco-resources/greenbar.gif" width="15" height="10" title="2" alt="2"/></td><td class="ctr2" id="e2">100%</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">2</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i2">6</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a6"><a href="ExtendedBufferedReader.java.html#L144" class="el_method">lookAhead()</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="14" height="10" title="10" alt="10"/></td><td class="ctr2" id="c4">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class= "ctr1" id="h4">0</td><td class="ctr2" id="i3">4</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a0"><a href="ExtendedBufferedReader.java.html#L186" class="el_method">close()</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="13" height="10" title="9" alt="9"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d5"/><td class="ctr2" id="e5">n/a</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g5">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i4">4</td><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a1"><a href="ExtendedBufferedReader.java.html#L39" class="el_method">ExtendedBufferedReader(Reader)</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="10" height="10" title="7" alt="7"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d6"/><td class="ctr2" id="e6">n/a</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g6" >1</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">3</td><td >class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td >id="a3"><a href="ExtendedBufferedReader.java.html#L76" >class="el_method">getLastChar()</a></td><td class="bar" id="b7"><img >src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" >alt="3"/></td><td class="ctr2" id="c7">100%</td><td class="bar" id="d7"/><td >class="ctr2" id="e7">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" >id="g7">1</td><td class="ctr1" id="h7">0</td><td class="ctr2" >id="i7">1</td><td class="ctr1" id="j7">0</td><td class="ctr2" >id="k7">1</td></tr><tr><td id="a4"><a >href="ExtendedBufferedReader.java.html#L170" >class="el_method">getPosition()</a></td><td class="bar" id="b8"><img >src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" >alt="3"/></td><td class="ctr2" id="c8">100%</td><td class="bar" id="d8"/><td >class="ctr2" id="e8">n/a</td><td class="ctr1" id="f8">0</td><td class="ctr2" >id= "g8">1</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i8">1</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td></tr><tr><td id="a5"><a href="ExtendedBufferedReader.java.html#L174" class="el_method">isClosed()</a></td><td class="bar" id="b9"><img src="../jacoco-resources/greenbar.gif" width="4" height="10" title="3" alt="3"/></td><td class="ctr2" id="c9">100%</td><td class="bar" id="d9"/><td class="ctr2" id="e9">n/a</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g9">1</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i9">1</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html> \ No newline at end of file Added: dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/ExtendedBufferedReader.java.html ============================================================================== --- dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/ExtendedBufferedReader.java.html (added) +++ dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/ExtendedBufferedReader.java.html Sun Feb 2 01:23:05 2020 @@ -0,0 +1,192 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>ExtendedBufferedReader.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CSV</a> > <a href="index.source.html" class="el_package">org.apache.commons.csv</a> > <span class="el_source" >ExtendedBufferedReader.java</span></div><h1>ExtendedBufferedReader.java</h1><pre > class="source lang-java linenums">/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.commons.csv; + +import static org.apache.commons.csv.Constants.CR; +import static org.apache.commons.csv.Constants.END_OF_STREAM; +import static org.apache.commons.csv.Constants.LF; +import static org.apache.commons.csv.Constants.UNDEFINED; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.Reader; + +/** + * A special buffered reader which supports sophisticated read access. + * <p> + * In particular the reader supports a look-ahead option, which allows you to see the next char returned by + * {@link #read()}. This reader also tracks how many characters have been read with {@link #getPosition()}. + * </p> + */ +final class ExtendedBufferedReader extends BufferedReader { + + /** The last char returned */ +<span class="fc" id="L39"> private int lastChar = UNDEFINED;</span> + + /** The count of EOLs (CR/LF/CRLF) seen so far */ + private long eolCounter; + + /** The position, which is number of characters read so far */ + private long position; + + private boolean closed; + + /** + * Created extended buffered reader using default buffer-size + */ + ExtendedBufferedReader(final Reader reader) { +<span class="fc" id="L53"> super(reader);</span> +<span class="fc" id="L54"> }</span> + + @Override + public int read() throws IOException { +<span class="fc" id="L58"> final int current = super.read();</span> +<span class="fc bfc" id="L59" title="All 6 branches covered."> if (current == CR || current == LF && lastChar != CR) {</span> +<span class="fc" id="L60"> eolCounter++;</span> + } +<span class="fc" id="L62"> lastChar = current;</span> +<span class="fc" id="L63"> this.position++;</span> +<span class="fc" id="L64"> return lastChar;</span> + } + + /** + * Returns the last character that was read as an integer (0 to 65535). This will be the last character returned by + * any of the read methods. This will not include a character read using the {@link #lookAhead()} method. If no + * character has been read then this will return {@link Constants#UNDEFINED}. If the end of the stream was reached + * on the last read then this will return {@link Constants#END_OF_STREAM}. + * + * @return the last character that was read + */ + int getLastChar() { +<span class="fc" id="L76"> return lastChar;</span> + } + + @Override + public int read(final char[] buf, final int offset, final int length) throws IOException { +<span class="fc bfc" id="L81" title="All 2 branches covered."> if (length == 0) {</span> +<span class="fc" id="L82"> return 0;</span> + } + +<span class="fc" id="L85"> final int len = super.read(buf, offset, length);</span> + +<span class="fc bfc" id="L87" title="All 2 branches covered."> if (len > 0) {</span> + +<span class="fc bfc" id="L89" title="All 2 branches covered."> for (int i = offset; i < offset + len; i++) {</span> +<span class="fc" id="L90"> final char ch = buf[i];</span> +<span class="fc bfc" id="L91" title="All 2 branches covered."> if (ch == LF) {</span> +<span class="fc bfc" id="L92" title="All 4 branches covered."> if (CR != (i > 0 ? buf[i - 1] : lastChar)) {</span> +<span class="fc" id="L93"> eolCounter++;</span> + } +<span class="fc bfc" id="L95" title="All 2 branches covered."> } else if (ch == CR) {</span> +<span class="fc" id="L96"> eolCounter++;</span> + } + } + +<span class="fc" id="L100"> lastChar = buf[offset + len - 1];</span> + +<span class="pc bpc" id="L102" title="1 of 2 branches missed."> } else if (len == -1) {</span> +<span class="fc" id="L103"> lastChar = END_OF_STREAM;</span> + } + +<span class="fc" id="L106"> position += len;</span> +<span class="fc" id="L107"> return len;</span> + } + + /** + * Calls {@link BufferedReader#readLine()} which drops the line terminator(s). This method should only be called + * when processing a comment, otherwise information can be lost. + * <p> + * Increments {@link #eolCounter} + * <p> + * Sets {@link #lastChar} to {@link Constants#END_OF_STREAM} at EOF, otherwise to LF + * + * @return the line that was read, or null if reached EOF. + */ + @Override + public String readLine() throws IOException { +<span class="fc" id="L122"> final String line = super.readLine();</span> + +<span class="fc bfc" id="L124" title="All 2 branches covered."> if (line != null) {</span> +<span class="fc" id="L125"> lastChar = LF; // needed for detecting start of line</span> +<span class="fc" id="L126"> eolCounter++;</span> + } else { +<span class="fc" id="L128"> lastChar = END_OF_STREAM;</span> + } + +<span class="fc" id="L131"> return line;</span> + } + + /** + * Returns the next character in the current reader without consuming it. So the next call to {@link #read()} will + * still return this value. Does not affect line number or last character. + * + * @return the next character + * + * @throws IOException + * if there is an error in reading + */ + int lookAhead() throws IOException { +<span class="fc" id="L144"> super.mark(1);</span> +<span class="fc" id="L145"> final int c = super.read();</span> +<span class="fc" id="L146"> super.reset();</span> + +<span class="fc" id="L148"> return c;</span> + } + + /** + * Returns the current line number + * + * @return the current line number + */ + long getCurrentLineNumber() { + // Check if we are at EOL or EOF or just starting +<span class="fc bfc" id="L158" title="All 8 branches covered."> if (lastChar == CR || lastChar == LF || lastChar == UNDEFINED || lastChar == END_OF_STREAM) {</span> +<span class="fc" id="L159"> return eolCounter; // counter is accurate</span> + } +<span class="fc" id="L161"> return eolCounter + 1; // Allow for counter being incremented only at EOL</span> + } + + /** + * Gets the character position in the reader. + * + * @return the current position in the reader (counting characters, not bytes since this is a Reader) + */ + long getPosition() { +<span class="fc" id="L170"> return this.position;</span> + } + + public boolean isClosed() { +<span class="fc" id="L174"> return closed;</span> + } + + /** + * Closes the stream. + * + * @throws IOException + * If an I/O error occurs + */ + @Override + public void close() throws IOException { + // Set ivars before calling super close() in case close() throws an IOException. +<span class="fc" id="L186"> closed = true;</span> +<span class="fc" id="L187"> lastChar = END_OF_STREAM;</span> +<span class="fc" id="L188"> super.close();</span> +<span class="fc" id="L189"> }</span> + +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html> \ No newline at end of file Added: dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/IOUtils.html ============================================================================== --- dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/IOUtils.html (added) +++ dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/IOUtils.html Sun Feb 2 01:23:05 2020 @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>IOUtils</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CSV</a> > <a href="index.html" class="el_package">org.apache.commons.csv</a> > <span class="el_class">IOUtils</span></div><h1>IOUtils</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sorta ble" id="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">3 of 63</td><td class="ctr2">95%</td><td class="bar">0 of 4</td><td class="ctr2">100%</td><td class="ctr1">1</td><td class="ctr2">7</td><td class="ctr1">1</td><td class="ctr2">14</td><td class="ctr1">1</td><td class="ctr2">5</td></tr></tfoot><tbody><tr><td id="a4"><a href="IOUtils.java.html#L25" class="el_method">IOUtils()</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="13" height="10" title="3" alt="3"/></td><td class="ctr2" id="c4">0%</td><td class="bar" id="d2"/><td class="ctr2" id="e2">n/a</td><td class="ctr1" id="f0">1</td><td class="ctr2" id="g2">1</td><td class="ctr1" id="h0">1</td><td class="ctr2" id="i2">1</td><td class="ctr1" id="j0">1</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a1"><a href="IOUtils.java.html#L79" class="el_method">copy(Reader, Appendable, CharBuffer)</a></td><td class="bar" id="b1"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="26" alt="26"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d0"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id= "f1">0</td><td class="ctr2" id="g0">2</td><td class="ctr1" id="h1">0</td><td class="ctr2" id="i0">6</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a3"><a href="IOUtils.java.html#L130" class="el_method">copyLarge(Reader, Writer, char[])</a></td><td class="bar" id="b2"><img src="../jacoco-resources/greenbar.gif" width="101" height="10" title="22" alt="22"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d1"><img src="../jacoco-resources/greenbar.gif" width="120" height="10" title="2" alt="2"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f2">0</td><td class="ctr2" id="g1">2</td><td class="ctr1" id="h2">0</td><td class="ctr2" id="i1">5</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a0"><a href="IOUtils.java.html#L60" class="el_method">copy(Reader, Appendable)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="27" height="10" title="6" alt="6"/></td><td class= "ctr2" id="c2">100%</td><td class="bar" id="d3"/><td class="ctr2" id="e3">n/a</td><td class="ctr1" id="f3">0</td><td class="ctr2" id="g3">1</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i3">1</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a2"><a href="IOUtils.java.html#L108" class="el_method">copyLarge(Reader, Writer)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="27" height="10" title="6" alt="6"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d4"/><td class="ctr2" id="e4">n/a</td><td class="ctr1" id="f4">0</td><td class="ctr2" id="g4">1</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i4">1</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html> \ No newline at end of file Added: dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/IOUtils.java.html ============================================================================== --- dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/IOUtils.java.html (added) +++ dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/IOUtils.java.html Sun Feb 2 01:23:05 2020 @@ -0,0 +1,140 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>IOUtils.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CSV</a> > <a href="index.source.html" class="el_package">org.apache.commons.csv</a> > <span class="el_source">IOUtils.java</ span></div><h1>IOUtils.java</h1><pre class="source lang-java linenums">/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.csv; + +import java.io.IOException; +import java.io.Reader; +import java.io.Writer; +import java.nio.CharBuffer; + +/** Copied from Apache Commons IO. */ +<span class="nc" id="L25">class IOUtils {</span> + + /** + * <p> + * Copied from Apache Commons IO. + * </p> + * The default buffer size ({@value}). + */ + static final int DEFAULT_BUFFER_SIZE = 1024 * 4; + + /** + * <p> + * Copied from Apache Commons IO. + * </p> + * Represents the end-of-file (or stream). + * @since 2.5 (made public) + */ + private static final int EOF = -1; + + /** + * Copies chars from a large (over 2GB) {@code Reader} to an {@code Appendable}. + * <p> + * This method buffers the input internally, so there is no need to use a + * {@code BufferedReader}. + * </p> + * The buffer size is given by {@link #DEFAULT_BUFFER_SIZE}. + * + * @param input the {@code Reader} to read from + * @param output the {@code Appendable} to append to + * @return the number of characters copied + * @throws NullPointerException if the input or output is null + * @throws IOException if an I/O error occurs + * @since 2.7 + */ + static long copy(final Reader input, final Appendable output) throws IOException { +<span class="fc" id="L60"> return copy(input, output, CharBuffer.allocate(DEFAULT_BUFFER_SIZE));</span> + } + + /** + * Copies chars from a large (over 2GB) {@code Reader} to an {@code Appendable}. + * <p> + * This method uses the provided buffer, so there is no need to use a + * {@code BufferedReader}. + * </p> + * + * @param input the {@code Reader} to read from + * @param output the {@code Appendable} to write to + * @param buffer the buffer to be used for the copy + * @return the number of characters copied + * @throws NullPointerException if the input or output is null + * @throws IOException if an I/O error occurs + * @since 2.7 + */ + static long copy(final Reader input, final Appendable output, final CharBuffer buffer) throws IOException { +<span class="fc" id="L79"> long count = 0;</span> + int n; +<span class="fc bfc" id="L81" title="All 2 branches covered."> while (EOF != (n = input.read(buffer))) {</span> +<span class="fc" id="L82"> buffer.flip();</span> +<span class="fc" id="L83"> output.append(buffer, 0, n);</span> +<span class="fc" id="L84"> count += n;</span> + } +<span class="fc" id="L86"> return count;</span> + } + + /** + * <p> + * Copied from Apache Commons IO. + * </p> + * Copies chars from a large (over 2GB) {@code Reader} to a {@code Writer}. + * <p> + * This method buffers the input internally, so there is no need to use a + * {@code BufferedReader}. + * <p> + * The buffer size is given by {@link #DEFAULT_BUFFER_SIZE}. + * + * @param input the {@code Reader} to read from + * @param output the {@code Writer} to write to + * @return the number of characters copied + * @throws NullPointerException if the input or output is null + * @throws IOException if an I/O error occurs + * @since 1.3 + */ + static long copyLarge(final Reader input, final Writer output) throws IOException { +<span class="fc" id="L108"> return copyLarge(input, output, new char[DEFAULT_BUFFER_SIZE]);</span> + } + + /** + * <p> + * Copied from Apache Commons IO. + * </p> + * Copies chars from a large (over 2GB) {@code Reader} to a {@code Writer}. + * <p> + * This method uses the provided buffer, so there is no need to use a + * {@code BufferedReader}. + * <p> + * + * @param input the {@code Reader} to read from + * @param output the {@code Writer} to write to + * @param buffer the buffer to be used for the copy + * @return the number of characters copied + * @throws NullPointerException if the input or output is null + * @throws IOException if an I/O error occurs + * @since 2.2 + */ + static long copyLarge(final Reader input, final Writer output, final char[] buffer) throws IOException { +<span class="fc" id="L130"> long count = 0;</span> + int n; +<span class="fc bfc" id="L132" title="All 2 branches covered."> while (EOF != (n = input.read(buffer))) {</span> +<span class="fc" id="L133"> output.write(buffer, 0, n);</span> +<span class="fc" id="L134"> count += n;</span> + } +<span class="fc" id="L136"> return count;</span> + } + +} +</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html> \ No newline at end of file Added: dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/Lexer.html ============================================================================== --- dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/Lexer.html (added) +++ dev/commons/csv/1.8-RC2/site/jacoco/org.apache.commons.csv/Lexer.html Sun Feb 2 01:23:05 2020 @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>Lexer</title><script type="text/javascript" src="../jacoco-resources/sort.js"></script></head><body onload="initialSort(['breadcrumb'])"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">Apache Commons CSV</a> > <a href="index.html" class="el_package">org.apache.commons.csv</a> > <span class="el_class">Lexer</span></div><h1>Lexer</h1><table class="coverage" cellspacing="0" id="coveragetable"><thead><tr><td class="sortable" i d="a" onclick="toggleSort(this)">Element</td><td class="down sortable bar" id="b" onclick="toggleSort(this)">Missed Instructions</td><td class="sortable ctr2" id="c" onclick="toggleSort(this)">Cov.</td><td class="sortable bar" id="d" onclick="toggleSort(this)">Missed Branches</td><td class="sortable ctr2" id="e" onclick="toggleSort(this)">Cov.</td><td class="sortable ctr1" id="f" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="g" onclick="toggleSort(this)">Cxty</td><td class="sortable ctr1" id="h" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="i" onclick="toggleSort(this)">Lines</td><td class="sortable ctr1" id="j" onclick="toggleSort(this)">Missed</td><td class="sortable ctr2" id="k" onclick="toggleSort(this)">Methods</td></tr></thead><tfoot><tr><td>Total</td><td class="bar">52 of 621</td><td class="ctr2">91%</td><td class="bar">9 of 128</td><td class="ctr2">92%</td><td class="ctr1">9</td><td class="ctr2">89</td><td class="ctr1">8</td><td cl ass="ctr2">142</td><td class="ctr1">0</td><td class="ctr2">22</td></tr></tfoot><tbody><tr><td id="a16"><a href="Lexer.java.html#L248" class="el_method">parseEncapsulatedToken(Token)</a></td><td class="bar" id="b0"><img src="../jacoco-resources/redbar.gif" width="32" height="10" title="41" alt="41"/><img src="../jacoco-resources/greenbar.gif" width="73" height="10" title="94" alt="94"/></td><td class="ctr2" id="c21">69%</td><td class="bar" id="d0"><img src="../jacoco-resources/redbar.gif" width="10" height="10" title="3" alt="3"/><img src="../jacoco-resources/greenbar.gif" width="50" height="10" title="15" alt="15"/></td><td class="ctr2" id="e12">83%</td><td class="ctr1" id="f0">3</td><td class="ctr2" id="g1">10</td><td class="ctr1" id="h0">3</td><td class="ctr2" id="i1">27</td><td class="ctr1" id="j0">0</td><td class="ctr2" id="k0">1</td></tr><tr><td id="a19"><a href="Lexer.java.html#L333" class="el_method">readEscape()</a></td><td class="bar" id="b1"><img src="../jacoco-resources/r edbar.gif" width="4" height="10" title="6" alt="6"/><img src="../jacoco-resources/greenbar.gif" width="19" height="10" title="25" alt="25"/></td><td class="ctr2" id="c20">80%</td><td class="bar" id="d1"><img src="../jacoco-resources/redbar.gif" width="10" height="10" title="3" alt="3"/><img src="../jacoco-resources/greenbar.gif" width="23" height="10" title="7" alt="7"/></td><td class="ctr2" id="e14">70%</td><td class="ctr1" id="f1">3</td><td class="ctr2" id="g2">9</td><td class="ctr1" id="h1">3</td><td class="ctr2" id="i3">12</td><td class="ctr1" id="j1">0</td><td class="ctr2" id="k1">1</td></tr><tr><td id="a15"><a href="Lexer.java.html#L92" class="el_method">nextToken(Token)</a></td><td class="bar" id="b2"><img src="../jacoco-resources/redbar.gif" width="3" height="10" title="5" alt="5"/><img src="../jacoco-resources/greenbar.gif" width="116" height="10" title="148" alt="148"/></td><td class="ctr2" id="c19">96%</td><td class="bar" id="d2"><img src="../jacoco-resources/redbar.gif" width="3" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="116" height="10" title="35" alt="35"/></td><td class="ctr2" id="e10">97%</td><td class="ctr1" id="f2">1</td><td class="ctr2" id="g0">19</td><td class="ctr1" id="h2">2</td><td class="ctr2" id="i0">39</td><td class="ctr1" id="j2">0</td><td class="ctr2" id="k2">1</td></tr><tr><td id="a17"><a href="Lexer.java.html#L195" class="el_method">parseSimpleToken(Token, int)</a></td><td class="bar" id="b3"><img src="../jacoco-resources/greenbar.gif" width="62" height="10" title="80" alt="80"/></td><td class="ctr2" id="c0">100%</td><td class="bar" id="d6"><img src="../jacoco-resources/greenbar.gif" width="40" height="10" title="12" alt="12"/></td><td class="ctr2" id="e0">100%</td><td class="ctr1" id="f5">0</td><td class="ctr2" id="g4">7</td><td class="ctr1" id="h3">0</td><td class="ctr2" id="i2">22</td><td class="ctr1" id="j3">0</td><td class="ctr2" id="k3">1</td></tr><tr><td id="a18"><a href="Lexer.java.h tml#L380" class="el_method">readEndOfLine(int)</a></td><td class="bar" id="b4"><img src="../jacoco-resources/greenbar.gif" width="34" height="10" title="44" alt="44"/></td><td class="ctr2" id="c1">100%</td><td class="bar" id="d5"><img src="../jacoco-resources/greenbar.gif" width="53" height="10" title="16" alt="16"/></td><td class="ctr2" id="e1">100%</td><td class="ctr1" id="f6">0</td><td class="ctr2" id="g3">9</td><td class="ctr1" id="h4">0</td><td class="ctr2" id="i4">10</td><td class="ctr1" id="j4">0</td><td class="ctr2" id="k4">1</td></tr><tr><td id="a13"><a href="Lexer.java.html#L67" class="el_method">Lexer(CSVFormat, ExtendedBufferedReader)</a></td><td class="bar" id="b5"><img src="../jacoco-resources/greenbar.gif" width="28" height="10" title="36" alt="36"/></td><td class="ctr2" id="c2">100%</td><td class="bar" id="d15"/><td class="ctr2" id="e15">n/a</td><td class="ctr1" id="f7">0</td><td class="ctr2" id="g15">1</td><td class="ctr1" id="h5">0</td><td class="ctr2" id="i5">9</t d><td class="ctr1" id="j5">0</td><td class="ctr2" id="k5">1</td></tr><tr><td id="a21"><a href="Lexer.java.html#L364" class="el_method">trimTrailingSpaces(StringBuilder)</a></td><td class="bar" id="b6"><img src="../jacoco-resources/greenbar.gif" width="19" height="10" title="25" alt="25"/></td><td class="ctr2" id="c3">100%</td><td class="bar" id="d4"><img src="../jacoco-resources/redbar.gif" width="3" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="16" height="10" title="5" alt="5"/></td><td class="ctr2" id="e13">83%</td><td class="ctr1" id="f3">1</td><td class="ctr2" id="g6">4</td><td class="ctr1" id="h6">0</td><td class="ctr2" id="i6">6</td><td class="ctr1" id="j6">0</td><td class="ctr2" id="k6">1</td></tr><tr><td id="a9"><a href="Lexer.java.html#L445" class="el_method">isMetaChar(int)</a></td><td class="bar" id="b7"><img src="../jacoco-resources/greenbar.gif" width="15" height="10" title="20" alt="20"/></td><td class="ctr2" id="c4">100%</td><td cl ass="bar" id="d3"><img src="../jacoco-resources/redbar.gif" width="3" height="10" title="1" alt="1"/><img src="../jacoco-resources/greenbar.gif" width="23" height="10" title="7" alt="7"/></td><td class="ctr2" id="e11">87%</td><td class="ctr1" id="f4">1</td><td class="ctr2" id="g5">5</td><td class="ctr1" id="h7">0</td><td class="ctr2" id="i9">1</td><td class="ctr1" id="j7">0</td><td class="ctr2" id="k7">1</td></tr><tr><td id="a11"><a href="Lexer.java.html#L418" class="el_method">isStartOfLine(int)</a></td><td class="bar" id="b8"><img src="../jacoco-resources/greenbar.gif" width="10" height="10" title="13" alt="13"/></td><td class="ctr2" id="c5">100%</td><td class="bar" id="d7"><img src="../jacoco-resources/greenbar.gif" width="20" height="10" title="6" alt="6"/></td><td class="ctr2" id="e2">100%</td><td class="ctr1" id="f8">0</td><td class="ctr2" id="g7">4</td><td class="ctr1" id="h8">0</td><td class="ctr2" id="i10">1</td><td class="ctr1" id="j8">0</td><td class="ctr2" id="k8">1</td> </tr><tr><td id="a12"><a href="Lexer.java.html#L408" class="el_method">isWhitespace(int)</a></td><td class="bar" id="b9"><img src="../jacoco-resources/greenbar.gif" width="9" height="10" title="12" alt="12"/></td><td class="ctr2" id="c6">100%</td><td class="bar" id="d8"><img src="../jacoco-resources/greenbar.gif" width="13" height="10" title="4" alt="4"/></td><td class="ctr2" id="e3">100%</td><td class="ctr1" id="f9">0</td><td class="ctr2" id="g8">3</td><td class="ctr1" id="h9">0</td><td class="ctr2" id="i11">1</td><td class="ctr1" id="j9">0</td><td class="ctr2" id="k9">1</td></tr><tr><td id="a6"><a href="Lexer.java.html#L429" class="el_method">isDelimiter(int)</a></td><td class="bar" id="b10"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="8" alt="8"/></td><td class="ctr2" id="c7">100%</td><td class="bar" id="d9"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="2" alt="2"/></td><td class="ctr2" id="e4">100%</td><td class="ctr1" id="f 10">0</td><td class="ctr2" id="g9">2</td><td class="ctr1" id="h10">0</td><td class="ctr2" id="i12">1</td><td class="ctr1" id="j10">0</td><td class="ctr2" id="k10">1</td></tr><tr><td id="a8"><a href="Lexer.java.html#L433" class="el_method">isEscape(int)</a></td><td class="bar" id="b11"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="8" alt="8"/></td><td class="ctr2" id="c8">100%</td><td class="bar" id="d10"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="2" alt="2"/></td><td class="ctr2" id="e5">100%</td><td class="ctr1" id="f11">0</td><td class="ctr2" id="g10">2</td><td class="ctr1" id="h11">0</td><td class="ctr2" id="i13">1</td><td class="ctr1" id="j11">0</td><td class="ctr2" id="k11">1</td></tr><tr><td id="a10"><a href="Lexer.java.html#L437" class="el_method">isQuoteChar(int)</a></td><td class="bar" id="b12"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="8" alt="8"/></td><td class="ctr2" id="c9">100%</td>< td class="bar" id="d11"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="2" alt="2"/></td><td class="ctr2" id="e6">100%</td><td class="ctr1" id="f12">0</td><td class="ctr2" id="g11">2</td><td class="ctr1" id="h12">0</td><td class="ctr2" id="i14">1</td><td class="ctr1" id="j12">0</td><td class="ctr2" id="k12">1</td></tr><tr><td id="a5"><a href="Lexer.java.html#L441" class="el_method">isCommentStart(int)</a></td><td class="bar" id="b13"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="8" alt="8"/></td><td class="ctr2" id="c10">100%</td><td class="bar" id="d12"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="2" alt="2"/></td><td class="ctr2" id="e7">100%</td><td class="ctr1" id="f13">0</td><td class="ctr2" id="g12">2</td><td class="ctr1" id="h13">0</td><td class="ctr2" id="i15">1</td><td class="ctr1" id="j13">0</td><td class="ctr2" id="k13">1</td></tr><tr><td id="a14"><a href="Lexer.java.html#L298" class="el_metho d">mapNullToDisabled(Character)</a></td><td class="bar" id="b14"><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="7" alt="7"/></td><td class="ctr2" id="c11">100%</td><td class="bar" id="d13"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="2" alt="2"/></td><td class="ctr2" id="e8">100%</td><td class="ctr1" id="f14">0</td><td class="ctr2" id="g13">2</td><td class="ctr1" id="h14">0</td><td class="ctr2" id="i16">1</td><td class="ctr1" id="j14">0</td><td class="ctr2" id="k14">1</td></tr><tr><td id="a7"><a href="Lexer.java.html#L425" class="el_method">isEndOfFile(int)</a></td><td class="bar" id="b15"><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="7" alt="7"/></td><td class="ctr2" id="c12">100%</td><td class="bar" id="d14"><img src="../jacoco-resources/greenbar.gif" width="6" height="10" title="2" alt="2"/></td><td class="ctr2" id="e9">100%</td><td class="ctr1" id="f15">0</td><td class="ctr2" id="g14">2</td><td clas s="ctr1" id="h15">0</td><td class="ctr2" id="i17">1</td><td class="ctr1" id="j15">0</td><td class="ctr2" id="k15">1</td></tr><tr><td id="a20"><a href="Lexer.java.html#L41" class="el_method">static {...}</a></td><td class="bar" id="b16"><img src="../jacoco-resources/greenbar.gif" width="5" height="10" title="7" alt="7"/></td><td class="ctr2" id="c13">100%</td><td class="bar" id="d16"/><td class="ctr2" id="e16">n/a</td><td class="ctr1" id="f16">0</td><td class="ctr2" id="g16">1</td><td class="ctr1" id="h16">0</td><td class="ctr2" id="i7">2</td><td class="ctr1" id="j16">0</td><td class="ctr2" id="k16">1</td></tr><tr><td id="a2"><a href="Lexer.java.html#L307" class="el_method">getCurrentLineNumber()</a></td><td class="bar" id="b17"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c14">100%</td><td class="bar" id="d17"/><td class="ctr2" id="e17">n/a</td><td class="ctr1" id="f17">0</td><td class="ctr2" id="g17">1</td><td class= "ctr1" id="h17">0</td><td class="ctr2" id="i18">1</td><td class="ctr1" id="j17">0</td><td class="ctr2" id="k17">1</td></tr><tr><td id="a1"><a href="Lexer.java.html#L316" class="el_method">getCharacterPosition()</a></td><td class="bar" id="b18"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c15">100%</td><td class="bar" id="d18"/><td class="ctr2" id="e18">n/a</td><td class="ctr1" id="f18">0</td><td class="ctr2" id="g18">1</td><td class="ctr1" id="h18">0</td><td class="ctr2" id="i19">1</td><td class="ctr1" id="j18">0</td><td class="ctr2" id="k18">1</td></tr><tr><td id="a4"><a href="Lexer.java.html#L401" class="el_method">isClosed()</a></td><td class="bar" id="b19"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c16">100%</td><td class="bar" id="d19"/><td class="ctr2" id="e19">n/a</td><td class="ctr1" id="f19">0</td><td class="ctr2" id="g19">1</td><td class="ct r1" id="h19">0</td><td class="ctr2" id="i20">1</td><td class="ctr1" id="j19">0</td><td class="ctr2" id="k19">1</td></tr><tr><td id="a0"><a href="Lexer.java.html#L459" class="el_method">close()</a></td><td class="bar" id="b20"><img src="../jacoco-resources/greenbar.gif" width="3" height="10" title="4" alt="4"/></td><td class="ctr2" id="c17">100%</td><td class="bar" id="d20"/><td class="ctr2" id="e20">n/a</td><td class="ctr1" id="f20">0</td><td class="ctr2" id="g20">1</td><td class="ctr1" id="h20">0</td><td class="ctr2" id="i8">2</td><td class="ctr1" id="j20">0</td><td class="ctr2" id="k20">1</td></tr><tr><td id="a3"><a href="Lexer.java.html#L64" class="el_method">getFirstEol()</a></td><td class="bar" id="b21"><img src="../jacoco-resources/greenbar.gif" width="2" height="10" title="3" alt="3"/></td><td class="ctr2" id="c18">100%</td><td class="bar" id="d21"/><td class="ctr2" id="e21">n/a</td><td class="ctr1" id="f21">0</td><td class="ctr2" id="g21">1</td><td class="ctr1" id="h21">0</t d><td class="ctr2" id="i21">1</td><td class="ctr1" id="j21">0</td><td class="ctr2" id="k21">1</td></tr></tbody></table><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.5.201910111838</span></div></body></html> \ No newline at end of file