FileName

interface FileName(source)

Exposes the filename APIs.

Properties

Link copied to clipboard
abstract val content: String

Filename content.

Link copied to clipboard
abstract val databaseFileName: String?

Name of the database file.

Link copied to clipboard
abstract val journalFileName: String?

Name of the rollback journal file.

Link copied to clipboard
abstract val walFileName: String?

Name of the WAL file.

Functions

Link copied to clipboard
abstract fun getKey(index: Int): String?

Returns the name, not the value, of the 0-based index-th query parameter for this filename, or null if index is out of bounds.

Link copied to clipboard
abstract fun getValue(parameter: String): String?

Returns the value of the query parameter, or null if it does not appear as a query parameter of this filename. If parameter exists but has no explicit value, an empty string is returned instead.

abstract fun getValue(parameter: String, default: Boolean): Boolean

Returns true if the value of query parameter is one of "yes", "true", or "on" in any case or if the value begins with a non-zero number.

abstract fun getValue(parameter: String, default: Long): Long

Converts the value of parameter into a 64-bit signed integer and returns that integer, or default if parameter does not exist. If the value of parameter is something other than an integer, then zero is returned.

Link copied to clipboard

Lists all the keys of this FileName.