CsvTableFileRenderer

com.phasmidsoftware.tableparser.core.render.CsvTableFileRenderer
See theCsvTableFileRenderer companion object
case class CsvTableFileRenderer[T](path: Path)(using z1: CsvRenderer[T], z2: CsvGenerator[T], csvAttributes: CsvAttributes) extends CsvTableRenderer[T, FileWriter]

Case class to help render a Table to a File in CSV format.

TODO merge this with CsvTableEncryptedFileRenderer to avoid duplicate code.

Type parameters

T

the type of object to be rendered, must provide evidence of CsvRenderer[T] amd CsvGenerator[T].

Value parameters

csvAttributes

implicit instance of CsvAttributes.

path

the path to which the table will be written.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class CsvTableRenderer[T, FileWriter]
trait Renderer[Table[T], Try[FileWriter]]
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

protected def generateText(ow: Writable[FileWriter], tc: CsvRenderer[T], o: FileWriter, t: T): FileWriter

CONSIDER replacing ow by implicitly of Writable[O]. CONSIDER replacing tc by implicitly of CsvRenderer[T].

CONSIDER replacing ow by implicitly of Writable[O]. CONSIDER replacing tc by implicitly of CsvRenderer[T].

Value parameters

o

O.

ow

Writable[O].

t

T.

tc

CsvRenderer[T].

Attributes

Returns

O.

Inherited from:
CsvTableRenderer
def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
def render(t: Table[T], attrs: Map[String, String]): Try[FileWriter]

Render an instance of T as an O, qualifying the rendering with attributes defined in attrs.

Render an instance of T as an O, qualifying the rendering with attributes defined in attrs.

Value parameters

attrs

a map of attributes for this value of O.

t

the input parameter, i.e., the Table[T] instance to render.

Attributes

Returns

an instance of type O.

Inherited from:
CsvTableRenderer
def render(t: Table[T]): Try[FileWriter]

Render an instance of T as an O, qualifying the rendering with no attributes.

Render an instance of T as an O, qualifying the rendering with no attributes.

Value parameters

t

a T to be rendered.

Attributes

Returns

an instance of type O.

Inherited from:
Renderer