Get a Java Resource.
Get a Java Resource. This method provides a much nicer exception than the Java default (NPE).
the class from which the resource may be relative
path of the resource (absolute if prefixed with /)
Get a Java Resource.
Get a Java Resource. This method provides a much nicer exception than the Java default (NPE).
absolute path of the resource
Get a Java Resource, returning None if it could not be found.
Get a Java Resource, returning None if it could not be found.
the class from which the resource may be relative
Get a Java Resource, returning None if it could not be found.
Get a Java Resource, returning None if it could not be found.
absolute path of the resource
A method for managing a simple resource.
A method for managing a simple resource. After running a computation, the resource will be closed and the computation will be returned.
More complicated resource management may warrant a dependency on "com.jsuereth" % "scala-arm", but this simple method handles most cases.
a closeable resource
a computation involving the supplied resource
the result of the computation over the resource