IzResources

izumi.fundamentals.platform.resources.IzResources
See theIzResources companion object
final class IzResources(classLoader: ClassLoader) extends AnyVal

Attributes

Companion
object
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def getPath(resPath: String): Option[PathReference]
def materialize(resPath: String, tempPrefix: String): Option[MaterializedResource]

Filesystem access to a classpath resource: IzResources.MaterializedResource.InPlace when the resource is a plain file or directory, IzResources.MaterializedResource.Extracted when it was copied out of its jar into a temporary file or directory, which close deletes. None when the resource does not exist or its filesystem cannot be opened.

Filesystem access to a classpath resource: IzResources.MaterializedResource.InPlace when the resource is a plain file or directory, IzResources.MaterializedResource.Extracted when it was copied out of its jar into a temporary file or directory, which close deletes. None when the resource does not exist or its filesystem cannot be opened.

Attributes

def read(fileName: String): Option[InputStream]
def readAsString(fileName: String): Option[String]