Resource

kantan.codecs.resource.Resource
See theResource companion trait

Attributes

Companion
trait
Source
Resource.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Resource.type

Members list

Value members

Concrete methods

def from[I, R](f: I => OpenResult[R]): Resource[I, R]

Attributes

Source
Resource.scala

Implicits

Implicits

Attributes

Source
Resource.scala
implicit def readerFromStream[A : InputResource](implicit evidence$1: InputResource[A], codec: Codec): ReaderResource[A]

Turns any InputResource into a ReaderResource using whatever implicit Codec is found in scope.

Turns any InputResource into a ReaderResource using whatever implicit Codec is found in scope.

Attributes

Source
Resource.scala
implicit def readerReaderResource[R <: Reader]: ReaderResource[R]

Attributes

Source
Resource.scala
implicit def streamInputResource[I <: InputStream]: InputResource[I]

Attributes

Source
Resource.scala
implicit def streamOutputResource[O <: OutputStream]: OutputResource[O]

Attributes

Source
Resource.scala

Attributes

Source
Resource.scala
implicit def writerFromStream[A : OutputResource](implicit evidence$1: OutputResource[A], codec: Codec): WriterResource[A]

Turns any OutputResource into a WriterResource using whatever implicit Codec is found in scope.

Turns any OutputResource into a WriterResource using whatever implicit Codec is found in scope.

Attributes

Source
Resource.scala
implicit def writerWriterResource[W <: Writer]: WriterResource[W]

Attributes

Source
Resource.scala

Inherited implicits

implicit val fileInputResource: InputResource[File]
implicit val fileOutputResource: OutputResource[File]
implicit val pathInputResource: InputResource[Path]
implicit val pathOutputResource: OutputResource[Path]
implicit val uriInputResource: InputResource[URI]
implicit val urlInputResource: InputResource[URL]