Class QuotedCSV

  • All Implemented Interfaces:
    java.lang.Iterable<java.lang.String>
    Direct Known Subclasses:
    QuotedQualityCSV

    public class QuotedCSV
    extends QuotedCSVParser
    implements java.lang.Iterable<java.lang.String>
    Implements a quoted comma separated list of values in accordance with RFC7230. OWS is removed and quoted characters ignored for parsing.
    See Also:
    "https://tools.ietf.org/html/rfc7230#section-3.2.6", "https://tools.ietf.org/html/rfc7230#section-7"
    • Constructor Summary

      Constructors 
      Constructor Description
      QuotedCSV​(boolean keepQuotes, java.lang.String... values)  
      QuotedCSV​(java.lang.String... values)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getValues()  
      boolean isEmpty()  
      java.util.Iterator<java.lang.String> iterator()  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • QuotedCSV

        public QuotedCSV​(java.lang.String... values)
      • QuotedCSV

        public QuotedCSV​(boolean keepQuotes,
                         java.lang.String... values)
    • Method Detail

      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • getValues

        public java.util.List<java.lang.String> getValues()
      • iterator

        public java.util.Iterator<java.lang.String> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<java.lang.String>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object