Writable

com.phasmidsoftware.tableparser.core.write.Writable
See theWritable companion trait
object Writable

The Writable object provides factory methods for creating instances of the Writable type that operate with different types of output structures. It encapsulates reusable logic to handle writing character sequences, rows, or other data in a structured manner.

Attributes

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

Members list

Value members

Concrete methods

def fileWritable(file: File): Writable[FileWriter]

Creates a Writable instance for handling FileWriter objects, enabling the writing of character sequences to a specified file. This Writable instance allows for creating a new FileWriter, appending raw character sequences to the file, and safely closing the FileWriter.

Creates a Writable instance for handling FileWriter objects, enabling the writing of character sequences to a specified file. This Writable instance allows for creating a new FileWriter, appending raw character sequences to the file, and safely closing the FileWriter.

Value parameters

file

the File object representing the target file where data will be written.

Attributes

Returns

a Writable[FileWriter] instance for operating with FileWriter.

def stringBuilderWritable(delim: CharSequence = ..., quoteChar: CharSequence = ...): Writable[StringBuilder]

Creates a Writable instance for StringBuilder that allows writing character sequences with configurable delimiters and quote characters.

Creates a Writable instance for StringBuilder that allows writing character sequences with configurable delimiters and quote characters.

Value parameters

delim

the delimiter character sequence used to separate elements, defaulting to ",".

quoteChar

the quote character sequence used to quote elements if necessary, defaulting to """.

Attributes

Returns

a Writable[StringBuilder] instance for writing character sequences to a StringBuilder.