CsvParser
org.saddle.csv.CsvParser$
object CsvParser
Csv parsing utilities
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
CsvParser.type
Members list
Value members
Concrete methods
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
Value parameters
- 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
Attributes
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]]
def parseString[T](data: String, 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 parseStringWithHeader[T](data: String, 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]]
In this article