CsvTableFileRenderer

com.phasmidsoftware.tableparser.core.render.CsvTableFileRenderer
See theCsvTableFileRenderer companion class

Singleton companion object providing a factory method to create instances of CsvTableFileRenderer.

This object simplifies the instantiation of CsvTableFileRenderer, allowing the user to provide a File directly, which is internally converted to a Path. Implicit instances of CsvRenderer, CsvGenerator, and CsvAttributes are required to define CSV rendering logic, header generation, and formatting options.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply[T](file: File)(using evidence$1: CsvRenderer[T], evidence$2: CsvGenerator[T], csvAttributes: CsvAttributes): CsvTableFileRenderer[T]

Factory method to create an instance of CsvTableFileRenderer.

Factory method to create an instance of CsvTableFileRenderer.

This method constructs a CsvTableFileRenderer by converting a File to a Path and utilizing the provided implicit instances of CsvRenderer, CsvGenerator, and CsvAttributes.

Type parameters

T

the generic type of objects to be rendered by the CsvTableFileRenderer. Must provide evidence of the CsvRenderer and CsvGenerator type classes.

Value parameters

csvAttributes

an implicit instance of CsvAttributes defining CSV formatting options such as delimiter and quote character.

file

the File representing the destination to which the table will be written as CSV.

Attributes

Returns

an instance of CsvTableFileRenderer[T] configured for rendering tables to the specified file.