aaronp / eie

Yet another IO library (in scala). Like better-files, but probably not as good, and using java.nio

GitHub

EIE

sbt test cucumber

'EIE' is yet another IO project, written in scala. It's inspiration is from utilities in e.g. apache-commons and better-files (both good libraries).

It's mostly useful for pimping java.nio.Path, and providing the ToBytes and FromBytes type-classes, and exposing some other basic DAO operations on a file system.

You can read more about the design and check the documentation here

Usage

libraryDependencies += "com.github.aaronp" %% "eie" % "0.0.3"

in maven:

<dependency>
  <groupId>com.github.aaronp</groupId>
  <artifactId>eie_2.12</artifactId>
  <version>0.0.3</version>
</dependency>

And then:

  import eie.io._

  val file: Path = "my/file.txt".asPath.text = "hello world!"

  val contents: String = file.text

  file.delete() // should return 'true'

Building

You can build/test/etc using the usual suspects:

sbt clean coveraget test coverageReport doc