Store an unsafe resource operation in a ResourceIO.
Path to the resource
Loads the resource synchronously, processes the contents using a java.io.InputStream and returns the result.
Loads the resource synchronously, processes the contents using a java.io.InputStream and returns the result. The InputStream is closed in the end, so it should not escape this call.
Loads the resource asynchronously, processes the contents using a java.io.InputStream and returns the result.
Loads the resource asynchronously, processes the contents using a java.io.InputStream and returns the result. The InputStream is closed in the end, so it should not escape this call.
Loads the resource synchronously, processes the contents using a scala.io.Source and returns the result.
Loads the resource synchronously, processes the contents using a scala.io.Source and returns the result. The Source is closed in the end, so it should not escape this call. For working with binary files, it is recommended to use withInputStream instead.
Loads the resource asynchronously, processes the contents using a scala.io.Source and returns the result.
Loads the resource asynchronously, processes the contents using a scala.io.Source and returns the result. The Source is closed in the end, so it should not escape this call. For working with binary files, it is recommended to use withInputStreamAsync instead.
Representation of a resource operation, with the common Monad operations.