Class CSVSettings

java.lang.Object
org.ghotibeaun.json.parser.csv.CSVSettings
All Implemented Interfaces:
Iterator<Column>

public class CSVSettings
extends Object
implements Iterator<Column>
  • Method Details

    • getDefaultSettings

      public static CSVSettings getDefaultSettings()
    • newSettings

      public static CSVSettings newSettings()
    • newSettings

      public static CSVSettings newSettings​(Column... columns)
    • fromConfiguration

      public static CSVSettings fromConfiguration​(Path configurationPath)
    • fromConfiguration

      public static CSVSettings fromConfiguration​(InputStream inputStream)
    • fromConfiguration

      public static CSVSettings fromConfiguration​(JSONObject configuration)
    • addColumnDefinition

      public void addColumnDefinition​(String columnName)
    • addColumnDefinition

      public void addColumnDefinition​(Column column)
    • addColumnDefinition

      public void addColumnDefinition​(String columnName, boolean nullable)
    • addColumnDefinition

      public void addColumnDefinition​(String columnName, boolean nullable, JSONValueType type)
    • iterator

      public Iterator<Column> iterator()
    • setSeparator

      public void setSeparator​(char separator)
    • getSeparator

      public char getSeparator()
    • getSeparatorByte

      public byte getSeparatorByte()
    • setEnclosure

      public void setEnclosure​(char enclosure)
    • getEnclosure

      public char getEnclosure()
    • getEnclosureByte

      public byte getEnclosureByte()
    • setEscape

      public void setEscape​(char escape)
    • getEscape

      public char getEscape()
    • getEscapeByte

      public byte getEscapeByte()
    • setHeaderRow

      public void setHeaderRow​(boolean hasHeaderRow)
    • getHeaderRow

      public boolean getHeaderRow()
    • setDateFormat

      public void setDateFormat​(String format)
    • getDateFormat

      public String getDateFormat()
    • isDefault

      public boolean isDefault()
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Column>
    • next

      public Column next()
      Specified by:
      next in interface Iterator<Column>
    • reset

      public void reset()