Resource

kantan.codecs.resource.Resource
See theResource companion trait

Attributes

Companion
trait
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]

Implicits

Implicits

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

implicit def readerReaderResource[R <: Reader]: ReaderResource[R]
implicit def streamInputResource[I <: InputStream]: InputResource[I]
implicit def streamOutputResource[O <: OutputStream]: OutputResource[O]
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

implicit def writerWriterResource[W <: Writer]: WriterResource[W]

Inherited implicits

Attributes

Inherited from:
PlatformSpecificInstances
implicit val fileInputResource: InputResource[File]

Attributes

Inherited from:
PlatformSpecificInstances
implicit val fileOutputResource: OutputResource[File]

Attributes

Inherited from:
PlatformSpecificInstances
implicit val pathInputResource: InputResource[Path]

Attributes

Inherited from:
PlatformSpecificInstances
implicit val pathOutputResource: OutputResource[Path]

Attributes

Inherited from:
PlatformSpecificInstances
implicit val uriInputResource: InputResource[URI]

Attributes

Inherited from:
PlatformSpecificInstances
implicit val urlInputResource: InputResource[URL]

Attributes

Inherited from:
PlatformSpecificInstances