fromArchiveEntry

abstract fun fromArchiveEntry(archive: Any, entryPath: String, charset: String): TextResource(source)

Creates a text resource backed by the archive entry at the given path within the given archive. The archive format is determined based on the archive's file extension. If the archive format is not supported or cannot be determined, any attempt to access the resource will fail with an exception.

Return

a text resource backed by the archive entry at the given path within the given archive

Parameters

archive

an archive file evaluated as per files

entryPath

the path to an archive entry

charset

the archive entry's character encoding (e.g. "utf-8")


abstract fun fromArchiveEntry(archive: Any, path: String): TextResource(source)

Same as fromArchiveEntry(archive, path, Charset.defaultCharset().name()).