Class StiCsvHelper

java.lang.Object
com.stimulsoft.report.dictionary.StiCsvHelper

public class StiCsvHelper extends Object
Copyright Stimulsoft
  • Constructor Details

    • StiCsvHelper

      public StiCsvHelper()
  • Method Details

    • getTable

      public static DataTable getTable(String path, Integer maxDataRows)
    • getTable

      public static DataTable getTable(String path, int codePage, String separator, Integer maxDataRows)
      Convert table from CSV file.
      Parameters:
      path -
      codePage -
      separator -
      maxDataRows -
      Returns:
    • getTable

      public static DataTable getTable(InputStream data) throws IOException
      Convert table from CSV file.
      Parameters:
      data -
      Returns:
      Throws:
      IOException
    • getTable

      public static DataTable getTable(InputStream data, Integer maxDataRows) throws IOException
      Convert table from CSV file.
      Parameters:
      data -
      maxDataRows -
      Returns:
      Throws:
      IOException
    • getDataSet

      public static DataSet getDataSet(InputStream data, String tableName, int codePage, String separator, Integer maxDataRows) throws IOException
      Convert dataset from bytes stored in CSV format.
      Parameters:
      data -
      tableName -
      codePage -
      separator -
      maxDataRows -
      Returns:
      Throws:
      IOException
    • getTable

      public static DataTable getTable(InputStream data, int codePage, String separator, Integer maxDataRows) throws IOException
      Convert table from bytes stored in CSV format.
      Parameters:
      data -
      codePage -
      separator -
      maxDataRows -
      Returns:
      Throws:
      IOException
    • getEncoding

      public static String getEncoding(int codePage)
    • getTable

      public static DataTable getTable(InputStream data, int codePage, String separator, boolean loadData, Integer maxDataRows) throws IOException
      Convert table from bytes stored in CSV format.
      Parameters:
      data -
      codePage -
      separator -
      loadData -
      maxDataRows -
      Returns:
      Throws:
      IOException