/*
 * Licensed 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 tech.tablesaw.io;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.sql.ResultSet;
import java.sql.SQLException;

import tech.tablesaw.api.Table;
import tech.tablesaw.io.csv.CsvReadOptions;
import tech.tablesaw.io.csv.CsvReadOptions.CsvReadOptionsBuilder;
import tech.tablesaw.io.jdbc.SqlResultSetReader;
import tech.tablesaw.io.csv.CsvReader;

public class DataFrameReader {

  public Table csv(String file) throws IOException {
    return csv(CsvReadOptions.builder(file));
  }

  public Table csv(File file) throws IOException {
    return csv(CsvReadOptions.builder(file));
  }

  public Table csv(InputStream stream, String tableName) throws IOException {
    return csv(CsvReadOptions.builder(stream, tableName));
  }

  public Table csv(Reader reader, String tableName) throws IOException {
    return csv(CsvReadOptions.builder(reader, tableName));
  }

  public Table csv(CsvReadOptionsBuilder options) throws IOException {
    return csv(options.build());
  }

  public Table csv(CsvReadOptions options) throws IOException {
    return CsvReader.read(options);
  }

  public static Table db(ResultSet resultSet, String tableName) throws SQLException {
    return SqlResultSetReader.read(resultSet, tableName);
  }

}

@@ -679,24 +679,53 @@
 .io.Reader;%0A
+import java.io.StringReader;%0A
 import java.
@@ -940,25 +940,15 @@
 .io.
-jdbc.SqlResultSet
+csv.Csv
 Read
@@ -967,39 +967,49 @@
 ech.tablesaw.io.
-csv.Csv
+jdbc.SqlResultSet
 Reader;%0A%0Apublic 
@@ -1129,32 +1129,167 @@
 er(file));%0A  %7D%0A%0A
+  public Table csv(String contents, String tableName) throws IOException %7B%0A    return csv(new StringReader(contents), tableName);%0A  %7D%0A%0A
   public Table c

Make it slightly easier to read a CSV from a string