CsvRendererURL

com.phasmidsoftware.tableparser.core.render.CsvRenderers.CsvRendererURL
object CsvRendererURL extends StandardCsvRenderer[URL]

Provides an implicit instance of StandardCsvRenderer for the type java.net.URL.

This object is used to render URL instances into their CSV (Comma-Separated Values) string representation. It extends the StandardCsvRenderer class, leveraging its default implementation for converting objects into a string format. Specifically, for URL instances, the toString method of the URL is used as the rendered string by default, unless overridden.

The renderer is intended for scenarios where URL objects need to be serialized or exported in CSV format, commonly for data processing or storage purposes.

Example usage:

val url: URL = new URL("https://example.com")
val renderedCsv: String = summon[StandardCsvRenderer[URL]].render(url, Map())
// renderedCsv would contain "https://example.com"

This implicit object allows seamless usage of URL type rendering in contexts where StandardCsvRenderer is required, such as within collections or for pipeline-based CSV serialization.

Attributes

Graph
Supertypes
class StandardCsvRenderer[URL]
trait CsvRenderer[URL]
trait Renderer[URL, String]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Inherited methods

def render(t: URL, attrs: Map[String, String]): String

Renders an object of type T into its string representation. Additional attributes can be specified via a map, but they are not used in the default implementation.

Renders an object of type T into its string representation. Additional attributes can be specified via a map, but they are not used in the default implementation.

Value parameters

attrs

a map of attributes influencing the rendering process; not used in the default implementation.

t

the object of type T to be rendered.

Attributes

Returns

a string representation of the object t.

Inherited from:
StandardCsvRenderer
def render(t: URL): String

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

Inherited fields

Attributes

Inherited from:
StandardCsvRenderer