Fun I/O provides functional programming patterns and high level abstractions for simple and reusable synchronous I/O. Fun I/O supports Java 8 or later and Scala 2.10, 2.11, 2.12 and 2.13 equally well via dedicated APIs and is covered by the Apache License, version 2.0.
Fun I/O composes the low level classes InputStream
and OutputStream
et al into powerful, high level abstractions
like Codec
, Source
, Sink
, Store
, ArchiveStore
, Socket
, Filter
et al.
These abstractions are:
InputStream
or OutputStream
directly.Fun I/O takes proper care of resource management: All created InputStream
and OutputStream
instances are properly
closed, even if there is an exception in a nested constructor.
Say goodbye to resource leaks and try-with-resources statements!