All Downloads are FREE. Search and download functionalities are using the official Maven repository.

akka.stream.alpakka.csv.scaladsl.CsvQuotingStyle.scala Maven / Gradle / Ivy

Go to download

Alpakka is a Reactive Enterprise Integration library for Java and Scala, based on Reactive Streams and Akka.

There is a newer version: 6.0.2
Show newest version
/*
 * Copyright (C) since 2016 Lightbend Inc. 
 */

package akka.stream.alpakka.csv.scaladsl

import akka.stream.alpakka.csv.javadsl

sealed trait CsvQuotingStyle

/**
 * Select which fields to quote in CSV formatting.
 */
object CsvQuotingStyle {

  /** Quote only fields requiring quotes */
  case object Required extends CsvQuotingStyle

  /** Quote all fields */
  case object Always extends CsvQuotingStyle

  /** Java to Scala conversion helper */
  def asScala(qs: javadsl.CsvQuotingStyle): CsvQuotingStyle = qs match {
    case javadsl.CsvQuotingStyle.ALWAYS => CsvQuotingStyle.Always
    case javadsl.CsvQuotingStyle.REQUIRED => CsvQuotingStyle.Required
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy