akka.stream.alpakka.csv.scaladsl.CsvQuotingStyle.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of akka-stream-alpakka-csv_3 Show documentation
Show all versions of akka-stream-alpakka-csv_3 Show documentation
Alpakka is a Reactive Enterprise Integration library for Java and Scala, based on Reactive Streams and Akka.
/*
* 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