package io
- Alphabetic
- By Inheritance
- io
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- implicit def file2Path(f: File): Path
- def getResource(c: Class[_], name: String): File
Returns a resource file of specified name associated with a class.
Returns a resource file of specified name associated with a class.
The resource is looked up under the modified package name of the given class (i.e., with '/' substituted for '.'), unless the resource name begins with a '/', in which case it is looked up under the resource name itself (stripping the leading '/').
- c
the class for which the resource shall be got
- name
the name of the desired resource
- returns
the resource as file
- Annotations
- @throws(classOf[IOException])
- Exceptions thrown
java.io.IOException
if no resource with this name is found
- def resource(c: Class[_], name: String)(implicit codec: Codec): Source
Returns a resource of specified name associated with a class.
Returns a resource of specified name associated with a class.
The resource is looked up under the modified package name of the given class (i.e., with '/' substituted for '.'), unless the resource name begins with a '/', in which case it is looked up under the resource name itself (stripping the leading '/').
- c
the class for which the resource shall be got
- name
the name of the desired resource
- codec
implicit character encoding
- returns
the resource as source
- Annotations
- @throws(classOf[IOException])
- Exceptions thrown
java.io.IOException
if no resource with this name is found
- implicit def string2File(s: String): File
- implicit def string2Path(s: String): Path
- object TemporaryDirectory