Skip to content
/ WiseIO Public

A small and simple Java library to help cope correctly with IOExceptions

Notifications You must be signed in to change notification settings

gjoseph/WiseIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

WiseIO is meant to be a *small* and *simple* library, to perform IO operations and handle IOExceptions properly. Made rather redundant with Java 7's try-with-resources.

You've always been bothered by IOExceptions and how you really should handle them when closing and flushing your streams, but were tired of the boilerplate? You've always thought IOUtils.closeSilently() in a finally block was a huge mistake but still the best you could afford ? This is for you.


        
final Properties props = new Properties();

new ClosingIO<InputStream>(in, new IOOperation() {
    public void op() throws IOException {
        props.load(in);
    }
 }).exec();

About

A small and simple Java library to help cope correctly with IOExceptions

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages