Type class for all types that can be closed.
Resource specialised for java.io.InputStream
.
Resource specialised for java.io.OutputStream
.
Resource specialised for java.io.Reader
.
Resource specialised for java.io.Reader
.
Note that it's good practice not to declare explicit instances of ReaderResource for types that have an
instance of InputResource. It's better to let the implicit resolution mechanism work out how to best turn
an InputStream
into a Reader
- the kantan.codecs.resource.bom package, in particular, relies on this.
Represents a resource that can be opened and worked on.
Offers iterator-like access to IO resources.
Resource specialised for java.io.Writer
.
Resource specialised for java.io.Writer
.
Note that it's good practice not to declare explicit instances of WriterResource for types that have an
instance of OutputResource. It's better to let the implicit resolution mechanism work out how to best turn
an OutputStream
into a Writer
- the kantan.codecs.resource.bom package, in particular, relies on this.
Provides instance summoning methods for InputResource.
Provides instance summoning methods for OutputResource.
Provides instance summoning methods for ReaderResource.
Provides instance summoning methods for WriterResource.
Adds Byte Order Mark support to resources.