|
|
fun asHtml(value: String): Document!
fun asHtml(input: InputStream): Document! |
|
|
fun asJson(input: InputStream): DocumentContext!
fun asJson(value: String): DocumentContext! |
|
|
fun asVersion(value: String, partsTaken: Int = 3): GradleVersion |
|
|
fun date(date: Date = Date()): String |
|
|
fun dateFileName(date: Date = Date()): String |
|
|
fun duration(millis: Long): String |
|
|
fun durationFit(thenMillis: Long, thenZoneId: ZoneId, durationMillis: Long): Boolean |
|
|
fun durationSince(millis: Long): String |
|
|
fun fileSize(file: File): String |
|
|
fun fileSizeBytesToHuman(bytes: Long): String |
|
|
fun <T : Any> fromJson(json: String): T
fun <T> fromJson(input: InputStream, clazz: Class<T>): T
fun <T> fromJson(json: String, clazz: Class<T>): T |
|
|
fun fromJsonToMap(json: String): Map<String, Any?> |
|
|
fun normalizePath(path: String): String |
|
|
fun percent(current: Int, total: Int): String
fun percent(current: Long, total: Long): String |
|
|
fun percentExplained(current: Int, total: Int): String
fun percentExplained(current: Long, total: Long): String |
|
|
fun projectPath(file: File, project: Project): String
fun projectPath(path: String, project: Project): String |
|
|
fun relativePath(path: String, basePath: String): String |
|
|
fun rootProjectPath(file: File, project: Project): String
fun rootProjectPath(path: String, project: Project): String |
|
|
fun toBase64(value: String): String |
|
|
fun toJson(value: Any, pretty: Boolean = true): String
fun toJson(value: Map<String, Any?>, pretty: Boolean = true): String |
|
|
fun toList(value: String?, delimiter: String = ","): List<String>? |
|
|
fun toMap(value: String?, valueDelimiter: String = ",", keyDelimiter: String = "="): Map<String, String>? |
|
|
fun toMd5(text: String): String |
|
|
fun toPassword(value: String): String |
|
|
fun versionAtLeast(actual: String, required: String): Boolean |
|
|
fun versionUnknown(): GradleVersion! |