FileSource

open class FileSource(val fileName: String) : ContentSource

A ContentSource that reads content from a local file.

Parameters

fileName

the path to the local file

Constructors

Link copied to clipboard
constructor(fileName: String)

Properties

Link copied to clipboard
open override val content: String

The textual content read from this source.

Link copied to clipboard
Link copied to clipboard
open override val remote: Boolean = false

Whether this source is remote (URL-based).

Link copied to clipboard
open override val source: String

The path or URL identifying this content source.