CsvParser

org.saddle.csv.CsvParser$
object CsvParser

Csv parsing utilities

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def makeAsciiSilentCharsetDecoder: CharsetDecoder
def parseFile[T](file: File, cols: Seq[Int], fieldSeparator: Char, quoteChar: Char, recordSeparator: String, maxLines: Long, charset: CharsetDecoder, bufferSize: Int)(implicit st: ScalarTag[T]): Either[String, Frame[Int, Int, T]]
def parseFileWithHeader[T](file: File, cols: Seq[Int], fieldSeparator: Char, quoteChar: Char, recordSeparator: String, maxLines: Long, charset: CharsetDecoder, bufferSize: Int)(implicit st: ScalarTag[T]): Either[String, Frame[Int, String, T]]
def parseFromChannel[T](channel: ReadableByteChannel, cols: Seq[Int], fieldSeparator: Char, quoteChar: Char, recordSeparator: String, maxLines: Long, header: Boolean, charset: CharsetDecoder, bufferSize: Int)(implicit st: ScalarTag[T]): Either[String, (Frame[Int, Int, T], Option[Index[String]])]

Parse CSV files according to RFC 4180

Parse CSV files according to RFC 4180

Attributes

cols

The column offsets to parse (if empty, parse everything)

fieldSeparator

The separator; default is comma

header

indicates whether the first line should be set aside

maxLines

The maximum number of records that will be read from the file. Includes header.

quoteChar

Within matching quotes, treat separChar as normal char; default is double-quote

recordSeparator

Record separator (line ending)

source

The csv data source to operate on

def parseInputStream[T](inputStream: InputStream, cols: Seq[Int], fieldSeparator: Char, quoteChar: Char, recordSeparator: String, maxLines: Long, charset: CharsetDecoder, bufferSize: Int)(implicit st: ScalarTag[T]): Either[String, Frame[Int, Int, T]]
def parseInputStreamWithHeader[T](inputStream: InputStream, cols: Seq[Int], fieldSeparator: Char, quoteChar: Char, recordSeparator: String, maxLines: Long, charset: CharsetDecoder, bufferSize: Int)(implicit st: ScalarTag[T]): Either[String, Frame[Int, String, T]]