kantan.codecs.resource.Resource
See theResource companion object
Represents a resource that can be opened and worked on.
The purpose of this trait is to abstract over the notion of "things that can be opened", such as files, URLs... Default instances are provided for java.io
types - java.io.File
, for example, has instances for both opening it for reading and for writing.
Type parameters
- I
-
type of the resource itself (eg
java.io.File
). - R
-
type of the opened resource (eg
java.io.InputStream
)
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Members list
In this article